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