Extension:Drafts

This extension adds the ability to save a draft of an article on the server while editing. Users must be logged in to save drafts, as they are tied to their user account. Drafts are always discarded when they are used to save the article they came from.

Saving Drafts
Drafts are always saved when the user clicks preview or view changes, however the following behavior is dependent on whether the client's browser has JavaScript enabled or disabled.

Accessing Drafts
If a draft has been saved the user can access them by
 * Returning to the edit screen for article they saved the draft of, where a list of existing drafts for that user and article will appear at the top of the edit page.
 * Visiting the drafts special page (Special:Drafts) where there is a list of all drafts for that user.

Installation

 * Copy the Drafts folder into your extensions directory.
 * Execute the following SQL statement before using the drafts extension.

create table drafts (    draft_id INTEGER AUTO_INCREMENT PRIMARY KEY,     draft_user INTEGER,     draft_namespace INTEGER,     draft_title VARBINARY(255),     draft_section INTEGER,     draft_starttime BINARY(14),     draft_edittime BINARY(14),     draft_savetime BINARY(14),     draft_scrolltop INTEGER,     draft_text BLOB,     draft_summary TINYBLOB,     draft_minoredit BOOL ); require_once "$IP/extensions/Drafts/Drafts.php";
 * Add the following line to the bottom of LocalSettings.php