1/** 2 * @file divalign2/script.js 3 * @brief Adds alignment picker to edit toolbar in Divalign2 plugin. 4 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 5 * @author Luis Machuca Bezzaza <luis [dot] machuca [at] gulix [dot] cl> 6 * @JS rewrited by Andrey Shpak <ashpak [at] ashpak [dot] ru> 7 */ 8 9 if(toolbar){ 10 toolbar[toolbar.length] = {"type":"format", "title":"Left", "key":"", 11 "icon":"../../plugins/divalign2/images/pleft.png", 12 "open":"#;;\n", "close":"\n#;;\n" 13 }; 14 toolbar[toolbar.length] = {"type":"format", "title":"Center", "key":"", 15 "icon":"../../plugins/divalign2/images/pcenter.png", 16 "open":";#;\n", "close":"\n;#;\n" 17 }; 18 toolbar[toolbar.length] = {"type":"format", "title":"Right", "key":"", 19 "icon":"../../plugins/divalign2/images/pright.png", 20 "open":";;#\n", "close":"\n;;#\n" 21 }; 22 toolbar[toolbar.length] = {"type":"format", "title":"Justify", "key":"", 23 "icon":"../../plugins/divalign2/images/pjustify.png", 24 "open":"###\n", "close":"\n###\n" 25 }; 26} 27 28/* end of divalign2/script.js */ 29