Sha256: 1f0411050676249971847df343e40043eaa85b2922242fe52c426b3c97236492

Contents?: true

Size: 1 KB

Versions: 25

Compression:

Stored size: 1 KB

Contents

tinymce.PluginManager.add("pagebreak",function(e){var t,n="mce-pagebreak",i=e.getParam("pagebreak_separator","<!-- pagebreak -->"),a='<img src="'+tinymce.Env.transparentSrc+'" class="'+n+'" data-mce-resize="false" />';t=new RegExp(i.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(e){return"\\"+e}),"gi"),e.addCommand("mcePageBreak",function(){e.execCommand("mceInsertContent",0,a)}),e.addButton("pagebreak",{title:"Page break",cmd:"mcePageBreak"}),e.addMenuItem("pagebreak",{text:"Page break",icon:"pagebreak",cmd:"mcePageBreak",context:"insert"}),e.on("ResolveName",function(t){"IMG"==t.target.nodeName&&e.dom.hasClass(t.target,n)&&(t.name="pagebreak")}),e.on("click",function(t){t=t.target,"IMG"===t.nodeName&&e.dom.hasClass(t,n)&&e.selection.select(t)}),e.on("BeforeSetContent",function(e){e.content=e.content.replace(t,a)}),e.on("PreInit",function(){e.serializer.addNodeFilter("img",function(e){for(var t,n,a=e.length;a--;)t=e[a],n=t.attr("class"),n&&-1!==n.indexOf("mce-pagebreak")&&(t.type=3,t.value=i,t.raw=!0)})})});

Version data entries

25 entries across 25 versions & 4 rubygems

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