slitaz-doc-wiki-data view plugins/note/script.js @ rev 136

Add attic/ru/handbook/{livecd,liveusb,multimedia}*.gz files.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Sep 15 11:28:21 2011 +0000 (2011-09-15)
parents
children
line source
1 /* Add Note buttons to the toolbar */
2 /* from http://wiki.splitbrain.org/wiki:tips:toolbarbutton */
4 /* Disabled because this does not allow to select a text and turn it into a note like the type:format does
5 var notes_arr = new Array(); // key = insertion string , value = icon filename.
6 notes_arr['<note></note>\\n']='tb_note.png';
7 notes_arr['<note tip></note>\\n']='tb_tip.png';
8 notes_arr['<note important></note>\\n']='tb_important.png';
9 notes_arr['<note warning></note>\\n']='tb_warning.png';
11 toolbar[toolbar.length] = {"type":"picker",
12 "title":"Notes",
13 "icon":"../../plugins/note/images/tb_note.png",
14 "key":"",
15 "list": notes_arr,
16 "icobase":"../plugins/note/images"};
17 */
19 if(toolbar){
20 toolbar[toolbar.length] = {"type":"format", "title":"note", "key":"",
21 "icon":"../../plugins/note/images/tb_note.png",
22 "open":"<note>", "close":"</note>"
23 };
24 toolbar[toolbar.length] = {"type":"format", "title":"tip", "key":"",
25 "icon":"../../plugins/note/images/tb_tip.png",
26 "open":"<note tip>", "close":"</note>"
27 };
28 toolbar[toolbar.length] = {"type":"format", "title":"important", "key":"",
29 "icon":"../../plugins/note/images/tb_important.png",
30 "open":"<note important>", "close":"</note>"
31 };
32 toolbar[toolbar.length] = {"type":"format", "title":"warning", "key":"",
33 "icon":"../../plugins/note/images/tb_warning.png",
34 "open":"<note warning>", "close":"</note>"
35 };
36 }