web/res/js/tinymce/plugins/example/plugin.min.js
author Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Thu, 18 Dec 2014 16:57:31 +0100
changeset 1175 7464dfd2f7bd
parent 1012 5064d9d287a0
permissions -rw-r--r--
Added tag V03.008 for changeset 043911e56d80

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"}]})}})});