plugin:newline
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:newline [2010-07-30 14:27] – [newline plugin] 81.241.159.144 | plugin:newline [2019-08-12 16:58] (current) – Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
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 |
- | tags : | + | tags : |
- | downloadurl: | + | downloadurl: |
- | bugtracker : http:// | + | bugtracker : https:// |
- | sourcerepo : http:// | + | sourcerepo : https:// |
donationurl: | donationurl: | ||
---- | ---- | ||
- | FIXME Complete the page | ||
===== Download and Installation ===== | ===== Download and Installation ===== | ||
- | Download | + | Search |
===== Syntax and Usage ===== | ===== Syntax and Usage ===== | ||
- | <code php action.php> | + | Just click on the new toolbar |
- | <?php | + | |
- | /** | + | |
- | * Example Action Plugin: Inserts a newline button into the toolbar | + | |
- | * | + | |
- | * @author Xarkam < | + | |
- | */ | + | |
- | if (!defined(' | + | ===== ToDo ===== |
- | if (!defined(' | + | |
- | require_once (DOKU_PLUGIN . ' | + | |
- | 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( | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ); | + | |
- | } | + | |
- | + | ||
- | /** | + | |
- | * Register the eventhandlers | + | |
- | */ | + | |
- | function register(& | + | |
- | $controller-> | + | |
- | } | + | |
- | + | ||
- | /** | + | |
- | * Inserts the toolbar button | + | |
- | */ | + | |
- | function insert_button(& | + | |
- | $event-> | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ); | + | |
- | } | + | |
- | + | ||
- | } | + | |
- | </ | + | |
+ | 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