/pigeoncms/Plugins/tiny_mce/plugins/xhtmlxtras/js/acronym.js

http://pigeoncms.googlecode.com/ · JavaScript · 28 lines · 15 code · 4 blank · 9 comment · 2 complexity · 0a19f79bdc9222d3273712fe37a8051c MD5 · raw file

  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);