PageRenderTime 44ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/editors/tiny_mce_3_4_3_1/plugins/xhtmlxtras/js/acronym.js

#
JavaScript | 28 lines | 15 code | 4 blank | 9 comment | 2 complexity | 0a19f79bdc9222d3273712fe37a8051c MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  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);