DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:saveandedit

SaveAndEdit Plugin

Compatible with DokuWiki

>2008-08-23, 2009-02-14, Lemming, Anteater, Rincewind, Angua, Adora Belle, Weatherwax, Binky, Ponder Stibbons

plugin Adds a checkbox to the edit mode in order to continue editing after the page has been saved.

Last updated on
2016-01-16
Provides
Action
Repository
Source
Conflicts with
blogtng

Tagged with editing

Have you ever worked on a page for a long time and wanted to save the content you have but still continue editing after saving and hated that you had to click again “Edit” after saving and wait another time for the page to load? Then this plugin is for you! It allows you to change that behavior by checking a simple checkbox below the edit area. When you press save after checking that checkbox, you won't be redirected to the page but instead the editor will load again and you can continue editing.

Download and Installation

Download and install the plugin using the Plugin Manager using the URL given above. Refer to Plugins on how to install plugins manually.

Usage

This plugin adds a checkbox that is shown below the editor, if you check it the edit form will reappear when you press “Save” after saving the page instead of redirecting to the page itself. This is useful if you are working on a page for a long time and want to save intermediate states your work.

Configuration and Settings

There are currently no configuration settings for this plugin.

You can translate the plugin by copying lang/en/lang.php to lang/YOUR_LANGUAGE/lang.php and change the one line where the English text is set. Just provide that line somewhere below, send me an email (see above for the address) or even create a fork of the repository linked above and send me a patch or a pull request on GitHub.

Development

Feel free to provide improvements of the code as patch or pull request on GitHub. Bugs and feature requests should be reported on GitHub.

Change Log

Known Bugs and Issues

  • There are know problems with blogtng: The data you enter for blogtng aren't saved when you check the “Continue editing…” checkbox, so be sure you save without the “Continue editing…” option before you leave the editing screen when you have changed the data for blogtng (e.g. don't press cancel after saving with the “Continue editing…” option).
  • Please note that because the standard save function of DokuWiki is executed the lock of the page is released and afterwards regained. This might fail if at the same moment someone else is trying to edit the page, then you will see the message that the page is locked. I currently don't see any reason to change this as that moment should be a fraction of a second long. Please report a bug if you see this happen.
  • This plugin does not work in all versions of DokuWiki that were released before 2008-08-23 because back then the redirect has been done at another place.

ToDo/Wish List

  • Save using Ajax so the editing isn't interrupted at all (and provide a keyboard shortcut for that)

FAQ

None so far.

Discussion

Please report bugs and feature request in the issue tracker on GitHub linked above. Feel free to leave comments below, if there should be too many I might either remove or summarize them in the FAQ or move them to an external discussion page.

Compatibility

This Plugin work's just fine in Dokuwiki 2015-08-10a “Detritus”.
– Steffen 2016-02-20

plugin/saveandedit.txt · Last modified: 2016-02-20 08:49 by 89.245.89.79