From 74bd6999c5e5c23ebbf90dbb6bdaabbddd7594cf Mon Sep 17 00:00:00 2001 From: sembrestels Date: Thu, 13 Oct 2011 15:23:11 +0200 Subject: Rename lib/dokuwiki to vendors/dokuwiki --- vendors/dokuwiki/lib/plugins/note/script.js | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 vendors/dokuwiki/lib/plugins/note/script.js (limited to 'vendors/dokuwiki/lib/plugins/note/script.js') diff --git a/vendors/dokuwiki/lib/plugins/note/script.js b/vendors/dokuwiki/lib/plugins/note/script.js new file mode 100644 index 000000000..c21120727 --- /dev/null +++ b/vendors/dokuwiki/lib/plugins/note/script.js @@ -0,0 +1,36 @@ +/* Add Note buttons to the toolbar */ +/* from http://wiki.splitbrain.org/wiki:tips:toolbarbutton */ + +/* Disabled because this does not allow to select a text and turn it into a note like the type:format does +var notes_arr = new Array(); // key = insertion string , value = icon filename. +notes_arr['\\n']='tb_note.png'; +notes_arr['\\n']='tb_tip.png'; +notes_arr['\\n']='tb_important.png'; +notes_arr['\\n']='tb_warning.png'; + +toolbar[toolbar.length] = {"type":"picker", + "title":"Notes", + "icon":"../../plugins/note/images/tb_note.png", + "key":"", + "list": notes_arr, + "icobase":"../plugins/note/images"}; +*/ + +if(toolbar){ + toolbar[toolbar.length] = {"type":"format", "title":"note", "key":"", + "icon":"../../plugins/note/images/tb_note.png", + "open":"", "close":"" + }; + toolbar[toolbar.length] = {"type":"format", "title":"tip", "key":"", + "icon":"../../plugins/note/images/tb_tip.png", + "open":"", "close":"" + }; + toolbar[toolbar.length] = {"type":"format", "title":"important", "key":"", + "icon":"../../plugins/note/images/tb_important.png", + "open":"", "close":"" + }; + toolbar[toolbar.length] = {"type":"format", "title":"warning", "key":"", + "icon":"../../plugins/note/images/tb_warning.png", + "open":"", "close":"" + }; +} -- cgit v1.2.3