Sha256: d2d6984087ef8d81c854ee2e221f6739b346d6a497ed47f5a23925cddb357003
Contents?: true
Size: 772 Bytes
Versions: 5
Compression:
Stored size: 772 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");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,c,b=document.forms[0].anchorName.value;if(!b||!/^[a-z][a-z0-9\-\_:\.]*$/i.test(b)){tinyMCEPopup.alert("advanced_dlg.anchor_invalid");return}tinyMCEPopup.restoreSelection();if(this.action!="update"){a.selection.collapse(1)}c=a.dom.getParent(a.selection.getNode(),"A");if(c){c.name=b}else{a.execCommand("mceInsertContent",0,a.dom.createHTML("a",{name:b,"class":"mceItemAnchor"},""))}tinyMCEPopup.close()}};tinyMCEPopup.onInit.add(AnchorDialog.init,AnchorDialog);
Version data entries
5 entries across 5 versions & 1 rubygems