From fda56e40b460ab06b6abee98ae1bc7d5f5847c9f Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 3 Apr 2016 02:27:10 -0400 Subject: add tinymce --- data/stuff/tinymce-4.3.7/plugins/preview/plugin.min.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 data/stuff/tinymce-4.3.7/plugins/preview/plugin.min.js (limited to 'data/stuff/tinymce-4.3.7/plugins/preview') diff --git a/data/stuff/tinymce-4.3.7/plugins/preview/plugin.min.js b/data/stuff/tinymce-4.3.7/plugins/preview/plugin.min.js new file mode 100644 index 0000000..10e57e2 --- /dev/null +++ b/data/stuff/tinymce-4.3.7/plugins/preview/plugin.min.js @@ -0,0 +1 @@ +tinymce.PluginManager.add("preview",function(a){var b=a.settings,c=!tinymce.Env.ie;a.addCommand("mcePreview",function(){a.windowManager.open({title:"Preview",width:parseInt(a.getParam("plugin_preview_width","650"),10),height:parseInt(a.getParam("plugin_preview_height","500"),10),html:'",buttons:{text:"Close",onclick:function(){this.parent().parent().close()}},onPostRender:function(){var d,e="";e+='',tinymce.each(a.contentCSS,function(b){e+=''});var f=b.body_id||"tinymce";-1!=f.indexOf("=")&&(f=a.getParam("body_id","","hash"),f=f[a.id]||f);var g=b.body_class||"";-1!=g.indexOf("=")&&(g=a.getParam("body_class","","hash"),g=g[a.id]||"");var h=a.settings.directionality?' dir="'+a.settings.directionality+'"':"";if(d=""+e+'"+a.getContent()+"",c)this.getEl("body").firstChild.src="data:text/html;charset=utf-8,"+encodeURIComponent(d);else{var i=this.getEl("body").firstChild.contentWindow.document;i.open(),i.write(d),i.close()}}})}),a.addButton("preview",{title:"Preview",cmd:"mcePreview"}),a.addMenuItem("preview",{text:"Preview",cmd:"mcePreview",context:"view"})}); \ No newline at end of file -- cgit v1.2.3