src/pyams_skin/resources/js/ext/tinymce/dev/plugins/anchor/plugin.min.js
changeset 566 a1707c607eec
parent 565 318533413200
child 567 bca1726b1d85
equal deleted inserted replaced
565:318533413200 566:a1707c607eec
     1 tinymce.PluginManager.add("anchor",function(b){function a(){var d=b.selection.getNode(),c="";if(d.tagName=="A"){c=d.name||d.id||""}b.windowManager.open({title:"Anchor",body:{type:"textbox",name:"name",size:40,label:"Name",value:c},onsubmit:function(f){b.execCommand("mceInsertContent",false,b.dom.createHTML("a",{id:f.data.name}))}})}b.addButton("anchor",{icon:"anchor",tooltip:"Anchor",onclick:a,stateSelector:"a:not([href])"});b.addMenuItem("anchor",{icon:"anchor",text:"Anchor",context:"insert",onclick:a})});