slitaz-doc-wiki-data diff plugins/note/script.js @ rev 39
Updated media/en/guides/image/shortcuts.png folder.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Apr 20 19:42:13 2011 +0000 (2011-04-20) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/plugins/note/script.js Wed Apr 20 19:42:13 2011 +0000 1.3 @@ -0,0 +1,36 @@ 1.4 +/* Add Note buttons to the toolbar */ 1.5 +/* from http://wiki.splitbrain.org/wiki:tips:toolbarbutton */ 1.6 + 1.7 +/* Disabled because this does not allow to select a text and turn it into a note like the type:format does 1.8 +var notes_arr = new Array(); // key = insertion string , value = icon filename. 1.9 +notes_arr['<note></note>\\n']='tb_note.png'; 1.10 +notes_arr['<note tip></note>\\n']='tb_tip.png'; 1.11 +notes_arr['<note important></note>\\n']='tb_important.png'; 1.12 +notes_arr['<note warning></note>\\n']='tb_warning.png'; 1.13 + 1.14 +toolbar[toolbar.length] = {"type":"picker", 1.15 + "title":"Notes", 1.16 + "icon":"../../plugins/note/images/tb_note.png", 1.17 + "key":"", 1.18 + "list": notes_arr, 1.19 + "icobase":"../plugins/note/images"}; 1.20 +*/ 1.21 + 1.22 +if(toolbar){ 1.23 + toolbar[toolbar.length] = {"type":"format", "title":"note", "key":"", 1.24 + "icon":"../../plugins/note/images/tb_note.png", 1.25 + "open":"<note>", "close":"</note>" 1.26 + }; 1.27 + toolbar[toolbar.length] = {"type":"format", "title":"tip", "key":"", 1.28 + "icon":"../../plugins/note/images/tb_tip.png", 1.29 + "open":"<note tip>", "close":"</note>" 1.30 + }; 1.31 + toolbar[toolbar.length] = {"type":"format", "title":"important", "key":"", 1.32 + "icon":"../../plugins/note/images/tb_important.png", 1.33 + "open":"<note important>", "close":"</note>" 1.34 + }; 1.35 + toolbar[toolbar.length] = {"type":"format", "title":"warning", "key":"", 1.36 + "icon":"../../plugins/note/images/tb_warning.png", 1.37 + "open":"<note warning>", "close":"</note>" 1.38 + }; 1.39 +}