exocomp The default editor comes with certain actions, I'm referring to the following (see screenshot below) How can I add an icon that triggers a custom action on selected text? For example just like the bold button but with my own icon and action.
turnermm For this hour need a plugin. See: https://www.dokuwiki.org/devel:toolbar https://www.dokuwiki.org/devel:event:toolbar_define
exocomp I haven't created a plugin before but I'll give it a shot, if you have a simple example for me to follow that would be great.
exocomp I got it working, :) I just had to add my custom action and icon to: /var/www/dokuwiki/inc/toolbar.php
turnermm The simplest I have with a toolbar is https://www.dokuwiki.org/plugin:skipentity You can download the source code. It has a javascript file which defined tow alternatives for the toolbar item. The choice is made in the configuration manager, and in action.php, the choice is setup in the $JSINFO global which is becomes a javascript global JSINFO, wich is tested for which of the two states is wanted. In addition to the pages suggested above, see also: https://www.dokuwiki.org/devel:action_plugins#sampleadd_toolbar_button