JAVASCRIPT   47

abbr js

Guest on 13th June 2022 01:10:37 AM

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

Raw Paste


Login or Register to edit or fork this paste. It's free.