diff options
Diffstat (limited to 'framework/Web/Javascripts/source/tinymce-405/plugins/code')
-rwxr-xr-x | framework/Web/Javascripts/source/tinymce-405/plugins/code/plugin.min.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/framework/Web/Javascripts/source/tinymce-405/plugins/code/plugin.min.js b/framework/Web/Javascripts/source/tinymce-405/plugins/code/plugin.min.js new file mode 100755 index 00000000..ed9646f5 --- /dev/null +++ b/framework/Web/Javascripts/source/tinymce-405/plugins/code/plugin.min.js @@ -0,0 +1 @@ +tinymce.PluginManager.add("code",function(e){function t(){e.windowManager.open({title:"Source code",body:{type:"textbox",name:"code",multiline:!0,minWidth:e.getParam("code_dialog_width",600),minHeight:e.getParam("code_dialog_height",500),value:e.getContent({source_view:!0}),spellcheck:!1},onSubmit:function(t){e.undoManager.transact(function(){e.setContent(t.data.code)}),e.nodeChanged()}})}e.addCommand("mceCodeEditor",t),e.addButton("code",{icon:"code",tooltip:"Source code",onclick:t}),e.addMenuItem("code",{icon:"code",text:"Source code",context:"tools",onclick:t})});
\ No newline at end of file |