acronym.js 559 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * acronym.js
  3. *
  4. * Copyright 2009, Moxiecode Systems AB
  5. * Released under LGPL License.
  6. *
  7. * License: http://tinymce.moxiecode.com/license
  8. * Contributing: http://tinymce.moxiecode.com/contributing
  9. */
  10. function init() {
  11. SXE.initElementDialog('acronym');
  12. if (SXE.currentAction == "update") {
  13. SXE.showRemoveButton();
  14. }
  15. }
  16. function insertAcronym() {
  17. SXE.insertElement('acronym');
  18. tinyMCEPopup.close();
  19. }
  20. function removeAcronym() {
  21. SXE.removeElement('acronym');
  22. tinyMCEPopup.close();
  23. }
  24. tinyMCEPopup.onInit.add(init);