Sha256: f424fbf0b1bc05a06cacacaeceeca91a9be55cdf2c18f8d1532558d2361f924b

Contents?: true

Size: 1.08 KB

Versions: 24

Compression:

Stored size: 1.08 KB

Contents

tinymce.PluginManager.add("preview",function(e){var t=e.settings;e.addCommand("mcePreview",function(){e.windowManager.open({title:"Preview",width:parseInt(e.getParam("plugin_preview_width","650"),10),height:parseInt(e.getParam("plugin_preview_height","500"),10),html:'<iframe src="javascript:\'\'" frameborder="0"></iframe>',buttons:{text:"Close",onclick:function(){this.parent().parent().close()}},onPostRender:function(){var n,i=this.getEl("body").firstChild.contentWindow.document,a="";tinymce.each(e.contentCSS,function(t){a+='<link type="text/css" rel="stylesheet" href="'+e.documentBaseURI.toAbsolute(t)+'">'});var r=t.body_id||"tinymce";-1!=r.indexOf("=")&&(r=e.getParam("body_id","","hash"),r=r[e.id]||r);var o=t.body_class||"";-1!=o.indexOf("=")&&(o=e.getParam("body_class","","hash"),o=o[e.id]||""),n="<!DOCTYPE html><html><head>"+a+"</head>"+'<body id="'+r+'" class="mce-content-body '+o+'">'+e.getContent()+"</body>"+"</html>",i.open(),i.write(n),i.close()}})}),e.addButton("preview",{title:"Preview",cmd:"mcePreview"}),e.addMenuItem("preview",{text:"Preview",cmd:"mcePreview",context:"view"})});

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
it-logica-application-backbone-1.5.3 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/plugin.min.js
it-logica-application-backbone-1.5.2 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/plugin.min.js
it-logica-application-backbone-1.5.1 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/plugin.min.js
it-logica-application-backbone-1.5.0 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/plugin.min.js
it-logica-application-backbone-1.4.12 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/plugin.min.js
use_tinymce-0.1.1 assets/tinymce_jquery_4_0_2/tinymce/js/tinymce/plugins/preview/plugin.min.js
use_tinymce-0.0.17 assets/tinymce_jquery_4_0_2/tinymce/js/tinymce/plugins/preview/plugin.min.js
use_tinymce-0.0.16 assets/tinymce_jquery_4_0_2/tinymce/js/tinymce/plugins/preview/plugin.min.js
it-logica-application-backbone-1.4.11 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/plugin.min.js
it-logica-application-backbone-1.4.10 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/plugin.min.js
it-logica-application-backbone-1.4.9 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/plugin.min.js
it-logica-application-backbone-1.4.8 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/plugin.min.js
it-logica-application-backbone-1.4.7 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/plugin.min.js
it-logica-application-backbone-1.4.6 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/plugin.min.js
it-logica-application-backbone-1.4.5 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/plugin.min.js
tinymce-rails-4.0.8 vendor/assets/javascripts/tinymce/plugins/preview/plugin.js
tinymce-rails-4.0.7 vendor/assets/javascripts/tinymce/plugins/preview/plugin.js
tinymce-rails4-4.0.6 app/assets/javascripts/plugins/preview/plugin.min.js
it-logica-application-backbone-1.4.4 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/plugin.min.js
it-logica-application-backbone-1.4.3 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/preview/plugin.min.js