Extension:ClientsideDrafts

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
ClientsideDrafts

Release status:Extension status beta

ImplementationTemplate:Extension#type MyWiki
DescriptionTemplate:Extension#description Adds the ability to autosave a draft of a page on the client while editing.
Author(s)Template:Extension#username Akzhantalk
Latest versionTemplate:Extension#version 0.2 (2012-06-10)
MediaWikiTemplate:Extension#mediawiki 1.17 to 1.19
LicenseTemplate:Extension#license MIT License
Download
Hooks usedTemplate:Extension#hook
EditPage::showEditForm:initial

Translate the ClientsideDrafts extension if it is available at translatewiki.net

Check usage and version matrix.

This extension adds the ability to autosave a draft of a page on the client while editing using HTML5 Storage and JSON API's.

User Interface[edit]

Saving Drafts[edit]

Behavior JavaScript Enabled
Automatic Saving
  • Saves a draft every 30 seconds

Edge Cases[edit]

  • When a page is moved, the drafts which refer to that page are dropped
  • When a draft is created for a new page but the page is never saved, the draft will still be available for creating the page
  • When a draft is created for a page and the page is then deleted, the draft will remain, and the behavior will then be just as for drafts of uncreated pages

Installation[edit]

  • Copy files of the extension into your extensions/ClientsideDrafts directory.
  • Add the following line to the bottom of LocalSettings.php
require_once ( "$IP/extensions/ClientsideDrafts/ClientsideDrafts.php" );

Known Bugs[edit]

  • Mediawiki change its info notice display method since 1.20. If you edit a page then close it without save, someone change the page then you will not be able to see the newest code in editor unless you replace your browser or clear browser cache.

See also[edit]

Extension:Drafts - server-side draft extension compatible with old MediaWikis (1.17 and below) ==