web/res/js/tinymce/plugins/example/plugin.min.js
author ymh <ymh.work@gmail.com>
Fri, 15 Nov 2024 02:01:12 +0100
changeset 1580 2b0cb7c8f34d
parent 1012 5064d9d287a0
permissions -rw-r--r--
Added tag V09.004 for changeset c88b8cc7b2b8

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