Sha256: 29d28101023254540f03107b6e74d49bd2aa5764aa95ca793eaefb248dd42fc0
Contents?: true
Size: 508 Bytes
Versions: 4
Compression:
Stored size: 508 Bytes
Contents
tinymce.PluginManager.add("anchor",function(n){function e(){var e=n.selection.getNode(),t="";"A"==e.tagName&&(t=e.name||e.id||""),n.windowManager.open({title:"Anchor",body:{type:"textbox",name:"name",size:40,label:"Name",value:t},onsubmit:function(e){n.execCommand("mceInsertContent",!1,n.dom.createHTML("a",{id:e.data.name}))}})}n.addButton("anchor",{icon:"anchor",tooltip:"Anchor",onclick:e,stateSelector:"a:not([href])"}),n.addMenuItem("anchor",{icon:"anchor",text:"Anchor",context:"insert",onclick:e})});
Version data entries
4 entries across 4 versions & 1 rubygems