dblclickedit plugin

Plugins by same author

Compatible with DokuWiki

2007-06-26b, 2008-05-05,2009-02-14

plugin Enter edit mode by double click

Last updated on
2009-07-05
Provides
Action
Repository
Source
Conflicts with
sidebar template

Similar to inlineeditor, quickedit

Tagged with editing

This plugin enables you to quickly enter edit mode by double clicking the headline or text.

Download and Installation

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

See also: Source Code, Change Log, Known Bugs and Issues, ToDo/Wish List

Usage

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

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;

Development

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.

Source Code

The source code is available at GitHub

Development Resources

Change Log

  • 2009-07-05
  • 2009-07-01
    • Initial release

Known Bugs and Issues


ToDo/Wish List

  • Advanced section edit, aware of tables and <code>.

Discussion

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

1) if you modify the DokuWiki core code
plugin/dblclickedit.txt · Last modified: 2011/02/05 17:26 by HåkanS
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate