");l.append(i).contents().each(function(){(this.nodeType===Node.COMMENT_NODE||0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName))&&this.parentNode.removeChild(this)});var c=l.html().trim();i=h("
").append(i).contents().map(function(){return this.nodeType===Node.COMMENT_NODE?"\x3c!--".concat(this.nodeValue,"--\x3e"):0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName)?this.outerHTML:""}).toArray().join("");var d=b(r),f=v(r,"html");C(R.$el,"".concat(c,"\n").concat(a)),R.node.clearAttributes(R.el),R.$el.attr(o),R.$el.addClass("fr-view"),R.$el.attr("spellcheck",R.opts.spellcheck),R.$el.attr("dir",R.opts.direction),C(R.$head,i),R.node.clearAttributes(R.$head.get(0)),R.$head.attr(s),R.node.clearAttributes(R.$html.get(0)),R.$html.attr(f),R.iframe_document.doctype.parentNode.replaceChild(function u(e,t){var n=e.match(//i);return n?t.implementation.createDocumentType(n[1],n[3],n[4]):t.implementation.createDocumentType("html")}(d,R.iframe_document),R.iframe_document.doctype)}else C(R.$el,r);var p=R.edit.isDisabled();R.edit.on(),R.core.injectStyle(R.opts.iframeDefaultStyle+R.opts.iframeStyle),g(),R.opts.useClasses||(R.$el.find("[fr-original-class]").each(function(){this.setAttribute("class",this.getAttribute("fr-original-class")),this.removeAttribute("fr-original-class")}),R.$el.find("[fr-original-style]").each(function(){this.setAttribute("style",this.getAttribute("fr-original-style")),this.removeAttribute("fr-original-style")})),p&&R.edit.off(),R.events.trigger("html.set"),R.events.trigger("charCounter.update")},syncInputs:D,get:function B(e,t){if(!R.$wp)return R.$oel.clone().removeClass("fr-view").removeAttr("contenteditable").get(0).outerHTML;var n="";R.events.trigger("html.beforeGet");var r,a,o=[],i={},s=[];if(D(),!R.opts.useClasses&&!t){var l=new RegExp("^".concat(R.opts.htmlIgnoreCSSProperties.join("$|^"),"$"),"gi");for(r=0;r=i[h[a]][b]&&(i[h[a]][b]=g,m[v].trim().length))){var C=m[v].trim().split(":");C.splice(0,1);var E=C.join(":").trim();-1").concat(R.$html.find("head").get(0).outerHTML,""));else if(void 0===e&&(e=!1),R.opts.fullPage){n=M(R.iframe_document),R.$el.removeClass("fr-view");var _=R.opts.heightMin,A=R.opts.height,S=R.opts.heightMax;R.opts.heightMin=null,R.opts.height=null,R.opts.heightMax=null,R.size.refresh(),n+="").concat(R.$html.html(),""),R.opts.iframe&&R.$html&&0(?:[\w\W]*?)<\/style>/g,"")).replace(/]*)data-fr-style="true"([^>]*)>/g,"")).replace(/