X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-all.js;h=3b081c753a761c175a5f689bc820efb8226ad067;hb=11496780534fe6fe3f6473da0cb0f23f3c384c4f;hp=af5f5affd29348e51500887e1bbfaf136861796f;hpb=12563008664944b15c71e691f110f0eb088ae741;p=roojs1 diff --git a/roojs-all.js b/roojs-all.js index af5f5affd2..3b081c753a 100644 --- a/roojs-all.js +++ b/roojs-all.js @@ -2080,8 +2080,8 @@ this.doc.open();this.doc.write(this.getDocMarkup());this.doc.close();var C={run: }}},toggleSourceEdit:function(A){this.sourceEditMode=A===true;if(this.sourceEditMode){Roo.get(this.iframe).addClass(['x-hidden','hide','d-none']);}else{Roo.get(this.iframe).removeClass(['x-hidden','hide','d-none']);this.deferFocus();}},cleanHtml:function(A){A=String(A); if(A.length>5){if(Roo.isSafari){A=A.replace(/\sclass="(?:Apple-style-span|khtml-block-placeholder)"/gi,'');}}if(A==' '){A='';}return A;},syncValue:function(){if(this.initialized){if(this.undoManager){this.undoManager.addEvent();}var bd=(this.doc.body||this.doc.documentElement); var A=this.win.getSelection();var B=document.createElement('div');B.innerHTML=bd.innerHTML;var C=B.getElementsByClassName('gtx-trans-icon');if(C.length>0){var rm=C.item(0).parentNode;rm.parentNode.removeChild(rm);}if(this.enableBlocks){new Roo.htmleditor.FilterBlock({node:B} -);}var D=B.innerHTML;if(this.autoClean){new Roo.htmleditor.FilterAttributes({node:B,attrib_white:['href','src','name','align','colspan','rowspan','data-display','data-width','start','style'],attrib_clean:['href','src']});var E=new Roo.htmleditor.TidySerializer({inner:true} -);D=E.serialize(B);}if(Roo.isSafari){var bs=bd.getAttribute('style');var m=bs?bs.match(/text-align:(.*?);/i):false;if(m&&m[1]){D='