Compatible with DokuWiki
2007-06-26b, 2008-05-05,2009-02-14
Similar to inlineeditor, quickedit
This plugin enables you to quickly enter edit mode by double clicking the headline or text.
Download and install the plugin using the Plugin Manager using the following URL. Refer to Plugins on how to install plugins manually.
| Download | dblclickedit.zip |
|---|
See also: Source Code, Change Log, Known Bugs and Issues, ToDo/Wish List
After installation just double click on a page to enter edit mode. JavaScript must be enabled in your browser and you may have to clear the cache.
Section edit may be enabled by modifying the function html_secedit_button() somewhere around row 105 in inc\html.php
Original code:
return $secedit;
Modify to:
return $matches[0].$secedit;
The first release was very simple. It adds ondblclick event for section and header <div>'s and a bit of JavaScript navigates to same page with do=edit action (same as clicking the edit button).
Section edits in second release is based on the same mechanics as the section edit button. If <!-- SECTION ... --> comments are saved by modifying html_secedit_button() they are found by dblclickedit plugin and the 'lines' information could be used for do=edit?lines=… action link.
I still want ability to edit large tables and code sections, but that I think will require a change in lexer/XHTML and a lot of other places. Probable breaking compatibility with some plugins too.
The source code is available at GitHub
There is also another solution to inline editing proposed by emanuele called inlinedit using jEditable. The dblClickEdit plugin is on the other hand focused on using the standard editor (or WYSIWYG of your choice). — Håkan Sandell 2009/07/02 21:34
Nice plugin! This is really what I want, but it does not work with URL rewrite right now. Hope this issue will be fixed soon. — Reder 2009/07/04 08:27
Fixed now — Håkan Sandell 2009/07/05 16:55
I don't know much about what is easily possible in the plugin, but it would be fantastic if some javascript could pick up on the exact text clicked on, and once the edit page has been displayed, would place the cursor at that particular word. Maybe this could be done with a text search, or maybe this is WAY harder than it sounds, but to me this would be even more useful than section edit. — KouOuKen 2009/11/27 11:36