/static/scripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js

http://n23.googlecode.com/ · JavaScript · 25 lines · 15 code · 4 blank · 6 comment · 2 complexity · 32810f2672cf68b7008107b111a0e3c2 MD5 · raw file

  1. /**
  2. * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
  3. *
  4. * @author Moxiecode - based on work by Andrew Tetlaw
  5. * @copyright Copyright Š 2004-2008, Moxiecode Systems AB, All rights reserved.
  6. */
  7. function init() {
  8. SXE.initElementDialog('abbr');
  9. if (SXE.currentAction == "update") {
  10. SXE.showRemoveButton();
  11. }
  12. }
  13. function insertAbbr() {
  14. SXE.insertElement(tinymce.isIE ? 'html:abbr' : 'abbr');
  15. tinyMCEPopup.close();
  16. }
  17. function removeAbbr() {
  18. SXE.removeElement('abbr');
  19. tinyMCEPopup.close();
  20. }
  21. tinyMCEPopup.onInit.add(init);