Sha256: 18f0f9b3135d08516e9b8ef7b5dbfd26e22cd35c6c5f8033a87df3c53846a657
Contents?: true
Size: 769 Bytes
Versions: 15
Compression:
Stored size: 769 Bytes
Contents
tinyMCEPopup.requireLangPack();var AnchorDialog={init:function(a){var c,d,b=document.forms[0];this.editor=a;d=a.dom.getParent(a.selection.getNode(),"A,IMG");v=a.dom.getAttrib(d,"name");if(v){this.action="update";b.anchorName.value=v}b.insert.value=a.getLang(d?"update":"insert")},update:function(){var a=this.editor;tinyMCEPopup.restoreSelection();if(this.action!="update"){a.selection.collapse(1)}if(tinymce.isWebKit){a.execCommand("mceInsertContent",0,a.dom.createHTML("img",{mce_name:"a",name:document.forms[0].anchorName.value,"class":"mceItemAnchor"}))}else{a.execCommand("mceInsertContent",0,a.dom.createHTML("a",{name:document.forms[0].anchorName.value,"class":"mceItemAnchor"},""))}tinyMCEPopup.close()}};tinyMCEPopup.onInit.add(AnchorDialog.init,AnchorDialog);
Version data entries
15 entries across 15 versions & 1 rubygems