text: (function(){tinymce.create("tinymce.plugins.PageBreakPlugin",{init:function(e){var t,i='<img src="'+e.theme.url+'/img/trans.gif" class="mcePageBreak mceItemNoResize" />',n="mcePageBreak",r=e.getParam("pagebreak_separator","<!-- pagebreak -->");t=RegExp(r.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(e){return"\\"+e}),"g"),e.addCommand("mcePageBreak",function(){e.execCommand("mceInsertContent",0,i)}),e.addButton("pagebreak",{title:"pagebreak.desc",cmd:n}),e.onInit.add(function(){e.theme.onResolveName&&e.theme.onResolveName.add(function(t,i){"IMG"==i.node.nodeName&&e.dom.hasClass(i.node,n)&&(i.name="pagebreak")})}),e.onClick.add(function(e,t){t=t.target,"IMG"===t.nodeName&&e.dom.hasClass(t,n)&&e.selection.select(t)}),e.onNodeChange.add(function(e,t,i){t.setActive("pagebreak","IMG"===i.nodeName&&e.dom.hasClass(i,n))}),e.onBeforeSetContent.add(function(e,n){n.content=n.content.replace(t,i)}),e.onPostProcess.add(function(e,t){t.get&&(t.content=t.content.replace(/<img[^>]+>/g,function(e){return-1!==e.indexOf('class="mcePageBreak')&&(e=r),e}))})},getInfo:function(){return{longname:"PageBreak",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak",version:tinymce.majorVersion+"."+tinymce.minorVersion}}}),tinymce.PluginManager.add("pagebreak",tinymce.plugins.PageBreakPlugin)})();