DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:double-click-to-edit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tips:double-click-to-edit [2016-02-08 20:22] – Added note about proper script location for Dokuwiki in 2016 210.195.71.65tips:double-click-to-edit [2016-03-12 15:42] – reverted hint to save js in template folder (not future-proof and only per template) and fixed reference to js under conf ach
Line 3: Line 3:
 The javascript snippet below adds the ability to double-click a section of an article to go straight to the edit mode for that section. The javascript snippet below adds the ability to double-click a section of an article to go straight to the edit mode for that section.
  
-<del>It is easy to add it. Just create a **script.js** file under your conf directory (i.e. ./conf/script.js) and append the following code snippet to it:</del>+It is easy to add it. Just create a **userscript.js** file under your conf directory (i.e. ./conf/userscript.js) and append the following code snippet to it:
  
-Open the **script.js** under "$WIKI/lib/tpl/dokuwiki/" and append the following code. +<code javascript conf/userscript.js>
- +
-<code javascript conf/script.js>+
 jQuery(document).ready(function(){ jQuery(document).ready(function(){
  
Line 33: Line 31:
  
  
-Tested on Release <del>2012-01-25b "Angua"</del> 2015-08-10a "Detritus"+Tested on Release 2015-08-10a "Detritus"
  
  
tips/double-click-to-edit.txt · Last modified: 2023-01-26 09:38 by 212.201.117.6

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki