DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:dwedit

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:dwedit [2019-04-14 22:45] turnermmplugin:dwedit [2022-09-27 21:19] (current) – [dwedit Plugin] turnermm
Line 3: Line 3:
 ---- plugin ---- ---- plugin ----
 description: Support plugin for ckgedit/cgdoku: adds dokuwiki native editor icon to page tools description: Support plugin for ckgedit/cgdoku: adds dokuwiki native editor icon to page tools
-author     : Myron Turner  +author     : Myron Turner 
-email      : turnermm02@shaw.ca +email      : turnermm02@shaw.ca
 type       : action type       : action
-lastupdate : 2017-08-15 +lastupdate : 2022-09-27 
-compatible : Frusterick Manners,Greebo+compatible : Frusterick Manners, Greebo,hogfather,Igor
 depends    :  depends    : 
 conflicts  conflicts 
Line 20: Line 20:
 screenshot_img :  screenshot_img : 
 ---- ----
 +
 ===== Installation ===== ===== Installation =====
  
-Simply install the plugin with the Extension Manager and an additional icon will appear in your page tools that will enable you to go directly to the Dokuwiki editor. +Simply install the plugin with the Extension Manager and an additional icon will appear in your page tools that will enable you to go directly to the DokuWiki editor. 
  
  
 ===== Usage ===== ===== Usage =====
 +==== 1. Templates compatible with the default "dokuwiki template" ====
 +In templates compatible with the dokuwiki template, ''dwedit'' will place an icon among the page tools, at the right of the template. The icon is a modified version of the dokuwiki pencil icon.  Clicking on it will open the native DokuWiki editor.  It opens to the entire page being edited, it does not support section editing. For section editing, all that is needed is to double click in the section being edited, and the native DokuWiki editor will open in that section.
 +==== 2. Non-Compatible Templates ====
  
-The icon is like the Edit button.  Clicking on the button will open the native Dokuwiki editor.  It opens to the entire page being edited, it does not support section editing. +For users who are not using the "dokuwiki template" or compatible templates, a link can be inserted from the template page using one of the following. Either a button
- +<code php> 
- +<?php   
-For users who are not using the Dokuwiki template, a link can be added from the template page  using one of the following: + global $ID; 
-    <?php tpl_toolsevent('dweditlink', array());?>+ $params = array('do'=>'edit','mode'=>'dwiki', 
 +    'fck_preview_mode'=>'nil');   
 + if($REV{ $params['rev'] = $REV; } 
 + $name = "DW Edit"; 
 + $button = html_btn($name , $ID, "", $params,"post",$name,$name);    
 + echo $button;       
 +?
 +</code>
  
-     <?php (new \dokuwiki\plugin\dwedit\DweditMenu())->getItems(); ?> +Or a link that is inserted directly into the HTML:    
-The firist form is deprecated as of ''Frusterick Manners'' and will eventually be dropped. The second form has been implemented as of ''Greebo'' and will replace the first.    +<code> 
-    +<a href="doku.php?id=<?php global $ID; echo $ID;?>&amp; 
-The appearance of the link in the deprecated version can be styled in the style.css file, using span.dwedit, which is currently set to:  +      do=edit&mode=dwiki&fck_preview_mode=nil" 
-      font-size:  10pt;  padding-left: 4px; padding-right: 4px;+      class="action edit" rel="nofollow" title="DW Edit">DW Edit</a> 
 +</code>  
  
plugin/dwedit.1555274737.txt.gz · Last modified: 2019-04-14 22:45 by turnermm

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