web/res/js/tinymce/plugins/anchor/plugin.min.js
author Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Thu, 28 Nov 2013 14:36:31 +0100
changeset 1012 5064d9d287a0
permissions -rw-r--r--
replace jquery text editor by jquery for a better control on text clean up.

tinymce.PluginManager.add("anchor",function(e){function t(){var t=e.selection.getNode();e.windowManager.open({title:"Anchor",body:{type:"textbox",name:"name",size:40,label:"Name",value:t.name||t.id},onsubmit:function(t){e.execCommand("mceInsertContent",!1,e.dom.createHTML("a",{id:t.data.name}))}})}e.addButton("anchor",{icon:"anchor",tooltip:"Anchor",onclick:t,stateSelector:"a:not([href])"}),e.addMenuItem("anchor",{icon:"anchor",text:"Anchor",context:"insert",onclick:t})});