text: !function(){var e={},t=function(t){for(var n=e[t],r=n.deps,o=n.defn,a=r.length,d=new Array(a),c=0;c<a;++c)d[c]=i(r[c]);var u=o.apply(null,d);if(void 0===u)throw"module ["+t+"] returned undefined";n.instance=u},n=function(t,n,i){if("string"!=typeof t)throw"module id must be a string";if(void 0===n)throw"no dependencies for "+t;if(void 0===i)throw"no definition function for "+t;e[t]={deps:n,defn:i,instance:void 0}},i=function(n){var i=e[n];if(void 0===i)throw"module ["+n+"] was undefined";return void 0===i.instance&&t(n),i.instance},r=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;++o)r[o]=i(e[o]);t.apply(null,r)};({}).bolt={module:{api:{define:n,require:r,demand:i}}};var o=n;(function(e,t){o(e,[],function(){return t})})("4",tinymce.util.Tools.resolve),o("1",["4"],function(e){return e("tinymce.PluginManager")}),o("6",["4"],function(e){return e("tinymce.Env")}),o("7",["4"],function(e){return e("tinymce.util.Tools")}),o("8",[],function(){return{getPreviewDialogWidth:function(e){return parseInt(e.getParam("plugin_preview_width","650"),10)},getPreviewDialogHeight:function(e){return parseInt(e.getParam("plugin_preview_height","500"),10)}}}),o("9",["7"],function(e){return{injectIframeContent:function(t,n,i){var r,o="",a=t.dom.encode;o+='<base href="'+a(t.documentBaseURI.getURI())+'">',e.each(t.contentCSS,function(e){o+='<link type="text/css" rel="stylesheet" href="'+a(t.documentBaseURI.toAbsolute(e))+'">'});var d=t.settings.body_id||"tinymce";-1!==d.indexOf("=")&&(d=t.getParam("body_id","","hash"),d=d[t.id]||d);var c=t.settings.body_class||"";-1!==c.indexOf("=")&&(c=t.getParam("body_class","","hash"),c=c[t.id]||"");var u=t.settings.directionality?' dir="'+t.settings.directionality+'"':"";if(r="<!DOCTYPE html><html><head>"+o+'</head><body id="'+a(d)+'" class="mce-content-body '+a(c)+'"'+a(u)+">"+t.getContent()+'<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A") {e.preventDefault();}}}, false);</script> </body></html>',i)n.src="data:text/html;charset=utf-8,"+encodeURIComponent(r);else{var s=n.contentWindow.document;s.open(),s.write(r),s.close()}}}}),o("5",["6","7","8","9"],function(e,t,n,i){return{open:function(t){var r=!e.ie,o='<iframe src="javascript:\'\'" frameborder="0"'+(r?' sandbox="allow-scripts"':"")+"></iframe>",a=n.getPreviewDialogWidth(t),d=n.getPreviewDialogHeight(t);t.windowManager.open({title:"Preview",width:a,height:d,html:o,buttons:{text:"Close",onclick:function(e){e.control.parent().parent().close()}},onPostRender:function(e){var n=e.control.getEl("body").firstChild;i.injectIframeContent(t,n,r)}})}}}),o("2",["5"],function(e){return{register:function(t){t.addCommand("mcePreview",function(){e.open(t)})}}}),o("3",[],function(){return{register:function(e){e.addButton("preview",{title:"Preview",cmd:"mcePreview"}),e.addMenuItem("preview",{text:"Preview",cmd:"mcePreview",context:"view"})}}}),o("0",["1","2","3"],function(e,t,n){return e.add("preview",function(e){t.register(e),n.register(e)}),function(){}}),i("0")()}();