summaryrefslogtreecommitdiff
path: root/chimere/static/tinymce/plugins/example/plugin.min.js
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-17 17:07:50 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-17 17:08:17 +0200
commitc40c7f5621c9083cc274e3735b3c2e0000e8db38 (patch)
treeefc18ae23a7dbcab8405c7bc5c9542b90dd01138 /chimere/static/tinymce/plugins/example/plugin.min.js
parent6d4a13d05bf5e834fd6887e663d0203a09ecd496 (diff)
downloadChimère-c40c7f5621c9083cc274e3735b3c2e0000e8db38.tar.bz2
Chimère-c40c7f5621c9083cc274e3735b3c2e0000e8db38.zip
Add tinymce files
Diffstat (limited to 'chimere/static/tinymce/plugins/example/plugin.min.js')
-rw-r--r--chimere/static/tinymce/plugins/example/plugin.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/chimere/static/tinymce/plugins/example/plugin.min.js b/chimere/static/tinymce/plugins/example/plugin.min.js
new file mode 100644
index 0000000..88687c7
--- /dev/null
+++ b/chimere/static/tinymce/plugins/example/plugin.min.js
@@ -0,0 +1 @@
+tinymce.PluginManager.add("example",function(a,b){a.addButton("example",{text:"My button",icon:!1,onclick:function(){a.windowManager.open({title:"Example plugin",body:[{type:"textbox",name:"title",label:"Title"}],onsubmit:function(b){a.insertContent("Title: "+b.data.title)}})}}),a.addMenuItem("example",{text:"Example plugin",context:"tools",onclick:function(){a.windowManager.open({title:"TinyMCE site",url:b+"/dialog.html",width:600,height:400,buttons:[{text:"Insert",onclick:function(){var b=a.windowManager.getWindows()[0];a.insertContent(b.getContentWindow().document.getElementById("content").value),b.close()}},{text:"Close",onclick:"close"}]})}})}); \ No newline at end of file