To support easy editing of NBTwiki pages, I have implemented an inline editor. The inline editor appears if the user double click the text; like this:

Clicking the green button will save text changes. And clicking the red button will discard the changes.

The editor in action:

YouTube Preview Image

 

Tech stuff:

The editor is builded on code from the quickedit plugin. Compared with the quickedit plugin, the inlineeditor supports locking/unlocking of pages, an editor toolbar, and better security.

The editor is build using javascript, php – and the updates are done using AJAX.

You can find the inlineeditor plugin here: http://www.dokuwiki.org/plugin:inlineeditor

 


 

Tagged on: