web/res/js/tinymce/plugins/example/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.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1012
5064d9d287a0 replace jquery text editor by jquery for a better control on text clean up.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     1
tinymce.PluginManager.add("example",function(t){t.addButton("example",{text:"My button",icon:!1,onclick:function(){t.windowManager.open({title:"Example plugin",body:[{type:"textbox",name:"title",label:"Title"}],onsubmit:function(e){t.insertContent("Title: "+e.data.title)}})}}),t.addMenuItem("example",{text:"Example plugin",context:"tools",onclick:function(){t.windowManager.open({title:"TinyMCE site",url:"http://www.tinymce.com",width:800,height:600,buttons:[{text:"Close",onclick:"close"}]})}})});