script.js 1.4 KB

1234567891011121314151617181920212223242526272829
  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. if(toolbar){
  9. toolbar[toolbar.length] = {"type":"format", "title":"Left", "key":"",
  10. "icon":"../../plugins/divalign2/images/pleft.png",
  11. "open":"#;;\n", "close":"\n#;;\n"
  12. };
  13. toolbar[toolbar.length] = {"type":"format", "title":"Center", "key":"",
  14. "icon":"../../plugins/divalign2/images/pcenter.png",
  15. "open":";#;\n", "close":"\n;#;\n"
  16. };
  17. toolbar[toolbar.length] = {"type":"format", "title":"Right", "key":"",
  18. "icon":"../../plugins/divalign2/images/pright.png",
  19. "open":";;#\n", "close":"\n;;#\n"
  20. };
  21. toolbar[toolbar.length] = {"type":"format", "title":"Justify", "key":"",
  22. "icon":"../../plugins/divalign2/images/pjustify.png",
  23. "open":"###\n", "close":"\n###\n"
  24. };
  25. }
  26. /* end of divalign2/script.js */