From 3069eaf35e833ffe4a1c1c7829dd7e168ae27420 Mon Sep 17 00:00:00 2001 From: Ciro Mattia Gonano Date: Wed, 11 Sep 2013 15:56:48 +0200 Subject: Merge up to r3319 --- .../Web/Javascripts/source/tinymce-405/plugins/pagebreak/plugin.min.js | 1 + 1 file changed, 1 insertion(+) create mode 100755 framework/Web/Javascripts/source/tinymce-405/plugins/pagebreak/plugin.min.js (limited to 'framework/Web/Javascripts/source/tinymce-405/plugins/pagebreak') diff --git a/framework/Web/Javascripts/source/tinymce-405/plugins/pagebreak/plugin.min.js b/framework/Web/Javascripts/source/tinymce-405/plugins/pagebreak/plugin.min.js new file mode 100755 index 00000000..8f535fa1 --- /dev/null +++ b/framework/Web/Javascripts/source/tinymce-405/plugins/pagebreak/plugin.min.js @@ -0,0 +1 @@ +tinymce.PluginManager.add("pagebreak",function(e){var t,n="mce-pagebreak",i=e.getParam("pagebreak_separator",""),a='';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)})})}); \ No newline at end of file -- cgit v1.2.3