| 1056 | | bold: [ "Bold", Xinha._lc({key: 'button_bold', string: 'tango/16x16/actions/format-text-bold.png'}, 'Xinha'), false, function(e) { e.execCommand("bold"); } ], |
| 1057 | | italic: [ "Italic", Xinha._lc({key: 'button_italic', string: 'tango/16x16/actions/format-text-italic.png'}, 'Xinha'), false, function(e) { e.execCommand("italic"); } ], |
| 1058 | | underline: [ "Underline", Xinha._lc({key: 'button_underline', string: 'tango/16x16/actions/format-text-underline.png'}, 'Xinha'), false, function(e) { e.execCommand("underline"); } ], |
| 1059 | | strikethrough: [ "Strikethrough", Xinha._lc({key: 'button_strikethrough', string: 'tango/16x16/actions/format-text-strikethrough.png'}, 'Xinha'), false, function(e) { e.execCommand("strikethrough"); } ], |
| 1060 | | subscript: [ "Subscript", Xinha._lc({key: 'button_subscript', string: 'tango/16x16/actions/format-text-subscript.png'}, 'Xinha'), false, function(e) { e.execCommand("subscript"); } ], |
| 1061 | | superscript: [ "Superscript", Xinha._lc({key: 'button_superscript', string: 'tango/16x16/actions/format-text-superscript.png'}, 'Xinha'), false, function(e) { e.execCommand("superscript"); } ], |
| 1062 | | |
| 1063 | | justifyleft: [ "Justify Left", 'tango/16x16/actions/format-justify-left.png', false, function(e) { e.execCommand("justifyleft"); } ], |
| 1064 | | justifycenter: [ "Justify Center", 'tango/16x16/actions/format-justify-center.png', false, function(e){ e.execCommand("justifycenter"); } ], |
| 1065 | | justifyright: [ "Justify Right", 'tango/16x16/actions/format-justify-right.png', false, function(e) { e.execCommand("justifyright"); } ], |
| 1066 | | justifyfull: [ "Justify Full", 'tango/16x16/actions/format-justify-fill.png', false, function(e) { e.execCommand("justifyfull"); } ], |
| 1067 | | |
| 1068 | | orderedlist: [ "Ordered List", ["ed_buttons_main.gif",0,3], false, function(e) { e.execCommand("insertorderedlist"); } ], |
| 1069 | | unorderedlist: [ "Bulleted List", ["ed_buttons_main.gif",1,3], false, function(e) { e.execCommand("insertunorderedlist"); } ], |
| 1070 | | insertorderedlist: [ "Ordered List", ["ed_buttons_main.gif",0,3], false, function(e) { e.execCommand("insertorderedlist"); } ], |
| 1071 | | insertunorderedlist: [ "Bulleted List", ["ed_buttons_main.gif",1,3], false, function(e) { e.execCommand("insertunorderedlist"); } ], |
| 1072 | | |
| 1073 | | outdent: [ "Decrease Indent", 'tango/16x16/actions/format-indent-less.png', false, function(e) { e.execCommand("outdent"); } ], |
| 1074 | | indent: [ "Increase Indent",'tango/16x16/actions/format-indent-more.png', false, function(e) { e.execCommand("indent"); } ], |
| 1075 | | forecolor: [ "Font Color", 'tango/16x16/actions/format-text-color.png', false, function(e) { e.execCommand("forecolor"); } ], |
| 1076 | | hilitecolor: [ "Background Color", 'tango/16x16/actions/format-text-background-color.png', false, function(e) { e.execCommand("hilitecolor"); } ], |
| 1077 | | |
| 1078 | | undo: [ "Undoes your last action", 'tango/16x16/actions/edit-undo.png', false, function(e) { e.execCommand("undo"); } ], |
| 1079 | | redo: [ "Redoes your last action", 'tango/16x16/actions/edit-redo.png', false, function(e) { e.execCommand("redo"); } ], |
| 1080 | | cut: [ "Cut selection", ["ed_buttons_main.gif",5,0], false, function (e, cmd) { e.execCommand(cmd); } ], |
| 1081 | | copy: [ "Copy selection", ["ed_buttons_main.gif",4,0], false, function (e, cmd) { e.execCommand(cmd); } ], |
| 1082 | | paste: [ "Paste from clipboard", ["ed_buttons_main.gif",4,1], false, function (e, cmd) { e.execCommand(cmd); } ], |
| 1083 | | selectall: [ "Select all", 'tango/16x16/actions/edit-select-all.png', false, function(e) {e.execCommand("selectall");} ], |
| 1084 | | |
| 1085 | | inserthorizontalrule: [ "Horizontal Rule", ["ed_buttons_main.gif",6,0], false, function(e) { e.execCommand("inserthorizontalrule"); } ], |
| 1086 | | createlink: [ "Insert Web Link", ["ed_buttons_main.gif",6,1], false, function(e) { e._createLink(); } ], |
| 1087 | | insertimage: [ "Insert/Modify Image", 'tango/16x16/mimetypes/image-x-generic.png', false, function(e) { e.execCommand("insertimage"); } ], |
| 1088 | | inserttable: [ "Insert Table", ["ed_buttons_main.gif",6,2], false, function(e) { e.execCommand("inserttable"); } ], |
| 1089 | | |
| 1090 | | htmlmode: [ "Toggle HTML Source", ["ed_buttons_main.gif",7,0], true, function(e) { e.execCommand("htmlmode"); } ], |
| 1091 | | toggleborders: [ "Toggle Borders", ["ed_buttons_main.gif",7,2], false, function(e) { e._toggleBorders(); } ], |
| 1092 | | print: [ "Print document", 'tango/16x16/actions/document-print.png', false, function(e) { if(Xinha.is_gecko) {e._iframe.contentWindow.print(); } else { e.focusEditor(); print(); } } ], |
| 1093 | | saveas: [ "Save as", "ed_saveas.gif", false, function(e) { e.execCommand("saveas",false,"noname.htm"); } ], |
| 1094 | | about: [ "About this editor", ["ed_buttons_main.gif",8,2], true, function(e) { e.getPluginInstance("AboutBox").show(); } ], |
| 1095 | | showhelp: [ "Help using editor", ["ed_buttons_main.gif",9,2], true, function(e) { e.execCommand("showhelp"); } ], |
| | 1056 | bold: [ "Bold", Xinha._lc({key: 'button_bold', string: ["ed_buttons_main.png",3,2]}, 'Xinha'), false, function(e) { e.execCommand("bold"); } ], |
| | 1057 | italic: [ "Italic", Xinha._lc({key: 'button_italic', string: ["ed_buttons_main.png",2,2]}, 'Xinha'), false, function(e) { e.execCommand("italic"); } ], |
| | 1058 | underline: [ "Underline", Xinha._lc({key: 'button_underline', string: ["ed_buttons_main.png",2,0]}, 'Xinha'), false, function(e) { e.execCommand("underline"); } ], |
| | 1059 | strikethrough: [ "Strikethrough", Xinha._lc({key: 'button_strikethrough', string: ["ed_buttons_main.png",3,0]}, 'Xinha'), false, function(e) { e.execCommand("strikethrough"); } ], |
| | 1060 | subscript: [ "Subscript", Xinha._lc({key: 'button_subscript', string: ["ed_buttons_main.png",3,1]}, 'Xinha'), false, function(e) { e.execCommand("subscript"); } ], |
| | 1061 | superscript: [ "Superscript", Xinha._lc({key: 'button_superscript', string: ["ed_buttons_main.png",2,1]}, 'Xinha'), false, function(e) { e.execCommand("superscript"); } ], |
| | 1062 | |
| | 1063 | justifyleft: [ "Justify Left", ["ed_buttons_main.png",0,0], false, function(e) { e.execCommand("justifyleft"); } ], |
| | 1064 | justifycenter: [ "Justify Center", ["ed_buttons_main.png",1,1], false, function(e){ e.execCommand("justifycenter"); } ], |
| | 1065 | justifyright: [ "Justify Right", ["ed_buttons_main.png",1,0], false, function(e) { e.execCommand("justifyright"); } ], |
| | 1066 | justifyfull: [ "Justify Full", ["ed_buttons_main.png",0,1], false, function(e) { e.execCommand("justifyfull"); } ], |
| | 1067 | |
| | 1068 | orderedlist: [ "Ordered List", ["ed_buttons_main.png",0,3], false, function(e) { e.execCommand("insertorderedlist"); } ], |
| | 1069 | unorderedlist: [ "Bulleted List", ["ed_buttons_main.png",1,3], false, function(e) { e.execCommand("insertunorderedlist"); } ], |
| | 1070 | insertorderedlist: [ "Ordered List", ["ed_buttons_main.png",0,3], false, function(e) { e.execCommand("insertorderedlist"); } ], |
| | 1071 | insertunorderedlist: [ "Bulleted List", ["ed_buttons_main.png",1,3], false, function(e) { e.execCommand("insertunorderedlist"); } ], |
| | 1072 | |
| | 1073 | outdent: [ "Decrease Indent", ["ed_buttons_main.png",1,2], false, function(e) { e.execCommand("outdent"); } ], |
| | 1074 | indent: [ "Increase Indent",["ed_buttons_main.png",0,2], false, function(e) { e.execCommand("indent"); } ], |
| | 1075 | forecolor: [ "Font Color", ["ed_buttons_main.png",3,3], false, function(e) { e.execCommand("forecolor"); } ], |
| | 1076 | hilitecolor: [ "Background Color", ["ed_buttons_main.png",2,3], false, function(e) { e.execCommand("hilitecolor"); } ], |
| | 1077 | |
| | 1078 | undo: [ "Undoes your last action", ["ed_buttons_main.png",4,2], false, function(e) { e.execCommand("undo"); } ], |
| | 1079 | redo: [ "Redoes your last action", ["ed_buttons_main.png",5,2], false, function(e) { e.execCommand("redo"); } ], |
| | 1080 | cut: [ "Cut selection", ["ed_buttons_main.png",5,0], false, function (e, cmd) { e.execCommand(cmd); } ], |
| | 1081 | copy: [ "Copy selection", ["ed_buttons_main.png",4,0], false, function (e, cmd) { e.execCommand(cmd); } ], |
| | 1082 | paste: [ "Paste from clipboard", ["ed_buttons_main.png",4,1], false, function (e, cmd) { e.execCommand(cmd); } ], |
| | 1083 | selectall: [ "Select all", ["ed_buttons_main.png",3,5], false, function(e) {e.execCommand("selectall");} ], |
| | 1084 | |
| | 1085 | inserthorizontalrule: [ "Horizontal Rule", ["ed_buttons_main.png",6,0], false, function(e) { e.execCommand("inserthorizontalrule"); } ], |
| | 1086 | createlink: [ "Insert Web Link", ["ed_buttons_main.png",6,1], false, function(e) { e._createLink(); } ], |
| | 1087 | insertimage: [ "Insert/Modify Image", ["ed_buttons_main.png",6,3], false, function(e) { e.execCommand("insertimage"); } ], |
| | 1088 | inserttable: [ "Insert Table", ["ed_buttons_main.png",6,2], false, function(e) { e.execCommand("inserttable"); } ], |
| | 1089 | |
| | 1090 | htmlmode: [ "Toggle HTML Source", ["ed_buttons_main.png",7,0], true, function(e) { e.execCommand("htmlmode"); } ], |
| | 1091 | toggleborders: [ "Toggle Borders", ["ed_buttons_main.png",7,2], false, function(e) { e._toggleBorders(); } ], |
| | 1092 | print: [ "Print document", ["ed_buttons_main.png",8,1], false, function(e) { if(Xinha.is_gecko) {e._iframe.contentWindow.print(); } else { e.focusEditor(); print(); } } ], |
| | 1093 | saveas: [ "Save as", "ed_saveas.png", false, function(e) { e.execCommand("saveas",false,"noname.htm"); } ], |
| | 1094 | about: [ "About this editor", ["ed_buttons_main.png",8,2], true, function(e) { e.getPluginInstance("AboutBox").show(); } ], |
| | 1095 | showhelp: [ "Help using editor", ["ed_buttons_main.png",9,2], true, function(e) { e.execCommand("showhelp"); } ], |