DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:newline

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:newline [2010-07-30 14:27] – [newline plugin] 81.241.159.144plugin:newline [2019-08-12 16:58] (current) Klap-in
Line 1: Line 1:
-====== newline plugin ======+====== NewLine Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: Simply add \\ for new line+description: Add toolbar button for simply adding \\ for new line
 author     : xarkam  author     : xarkam 
 email      : xarkam@gmail.com  email      : xarkam@gmail.com 
 type       : action plugin type       : action plugin
-lastupdate : 2010-07-30 +lastupdate : 2019-02-28 
-compatible : 2009-12-25c “Lemming”+compatible : Greebo, Frusterick Manners, Elenor Of Tsort, Detritus, Hrun, Ponder Stibbons
 depends    :  depends    : 
 conflicts  conflicts 
-similar    :  +similar    : custombuttons 
-tags       : newline+tags       : toolbar
  
-downloadurl: # eg. http://github.com/xarkam/dokuwiki-plugin-newline/zipball/master +downloadurl: https://github.com/Xarkam/Dokuwiki-New-Line/zipball/master 
-bugtracker : http://github.com/Xarkam/Dokuwiki-New-Line/issues +bugtracker : https://github.com/Xarkam/Dokuwiki-New-Line/issues 
-sourcerepo : http://github.com/Xarkam/Dokuwiki-New-Line+sourcerepo : https://github.com/Xarkam/Dokuwiki-New-Line
 donationurl:  donationurl: 
 ---- ----
-FIXME Complete the page 
  
 ===== Download and Installation ===== ===== Download and Installation =====
  
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the URL given above. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ===== Syntax and Usage ===== ===== Syntax and Usage =====
  
-<code php action.php> +Just click on the new toolbar button ({{https://github.com/Xarkam/Dokuwiki-New-Line/raw/master/newline.png?nolink&16}}) and press return.
-<?php +
-/** +
- * Example Action Plugin: Inserts a newline button into the toolbar +
- * +
- * @author Xarkam <xarkam@gmail.com+
- */+
  
-if (!defined('DOKU_INC')) die(); +===== ToDo =====
-if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/'); +
-require_once (DOKU_PLUGIN . 'action.php');+
  
-class action_plugin_newline extends DokuWiki_Action_Plugin {+Show to add a return action after the %%\\%% characters in close action.
  
-    /** +===== Alternatives =====
-     * return some info +
-    */ +
-  function getInfo(){ +
-    return array( +
-                 'author' => 'Xarkam', +
-                 'email'  => 'Xarkam@gmail.com', +
-                 'date'   => rtrim(io_readFile(DOKU_PLUGIN.'newline/VERSION.txt')), +
-                 'name'   => 'New Line (action plugin component)', +
-                 'desc'   => 'Insert a new line with \\\\', +
-                 'url'    => 'http://wiki.splitbrain.org/plugin:newline', +
-                 ); +
-  } +
- +
-    /** +
-     * Register the eventhandlers +
-     */ +
-    function register(&$controller) { +
-        $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array ()); +
-    } +
- +
-    /** +
-     * Inserts the toolbar button +
-     */ +
-    function insert_button(& $event, $param) { +
-        $event->data[] array ( +
-            'type' => 'format', +
-            'title' => $this->getLang('qb_newlinebutton'), +
-            'icon' => '../../plugins/newline/newline.png', +
-            'open' => '\\\\', +
-            'close' => '', +
-        ); +
-    } +
- +
-+
-</code>+
  
 +Plugin [[custombuttons]] can place in toolbar preprogrammed buttons, and for new line action too.
plugin/newline.1280492869.txt.gz · Last modified: 2010-07-30 14:27 by 81.241.159.144

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