roojs-ui.js
authorAlan <alan@roojs.com>
Thu, 21 Jul 2022 09:05:50 +0000 (17:05 +0800)
committerAlan <alan@roojs.com>
Thu, 21 Jul 2022 09:05:50 +0000 (17:05 +0800)
roojs-ui-debug.js
roojs-bootstrap.js
roojs-bootstrap-debug.js
roojs-all.js
roojs-debug.js
Roo/htmleditor/FilterWord.js

Roo/htmleditor/FilterWord.js
roojs-all.js
roojs-bootstrap-debug.js
roojs-bootstrap.js
roojs-debug.js
roojs-ui-debug.js
roojs-ui.js

index c48dec0..f95db31 100644 (file)
@@ -327,7 +327,7 @@ Roo.extend(Roo.htmleditor.FilterWord, Roo.htmleditor.Filter,
             
             // not starting at 1..
             if (!stack[nlvl].hasAttribute("start") && num > 1) {
-                stack[nlvl].setAttribuet("start", num);
+                stack[nlvl].setAttribute("start", num);
             }
             
             var nli = stack[nlvl].appendChild(doc.createElement('li'));
index 8b16cd1..7e6918c 100644 (file)
@@ -1940,7 +1940,7 @@ ns=ns.nextSibling;G=true;if(E.length&&E[0].hasAttribute('style')){var F=this.sty
 for(var i=0;i<E.length;i++){if(E[i].hasAttribute('style')&&E[i].getAttribute('style').match(/mso-list/)){G=true;break;}}if(!G){break;}C.push(ns);ns=ns.nextSibling;}if(!C.length){ns.className="";return;}var ul=A.ownerDocument.createElement(D);A.insertBefore(ul,p);
 var H=0;var I=[ul];var J=false;var K={};max_margins=-1;C.forEach(function(n,L){var M=n.getElementsByTagName('span');if(!M.length){A.removeChild(n);return;}var N=1;var O={};for(var i=0;i<M.length;i++){O=this.styleToObject(M[i]);if(typeof(O['mso-list'])=='undefined'){continue;
 }if(D=='ol'){var N=M[i].innerText.replace(/[^0-9]+]/g,'');}M[i].parentNode.removeChild(M[i]);break;}O=this.styleToObject(n);if(typeof(O['mso-list'])=='undefined'){A.removeChild(n);return;}var P=O['margin-left'];if(typeof(K[P])=='undefined'){max_margins++;
-K[P]=max_margins;}nlvl=K[P];if(nlvl>H){var Q=B.createElement(D);if(!J){J=B.createElement('li');I[H].appendChild(J);}J.appendChild(Q);I[nlvl]=Q;}H=nlvl;if(!I[nlvl].hasAtribute("start")&&N>1){I[nlvl].setAttribuet("start",N);}var R=I[nlvl].appendChild(B.createElement('li'));
+K[P]=max_margins;}nlvl=K[P];if(nlvl>H){var Q=B.createElement(D);if(!J){J=B.createElement('li');I[H].appendChild(J);}J.appendChild(Q);I[nlvl]=Q;}H=nlvl;if(!I[nlvl].hasAttribute("start")&&N>1){I[nlvl].setAttribute("start",N);}var R=I[nlvl].appendChild(B.createElement('li'));
 J=R;R.innerHTML=n.innerHTML;A.removeChild(n);},this);}});
 // Roo/htmleditor/FilterStyleToTag.js
 Roo.htmleditor.FilterStyleToTag=function(A){this.tags={B:['fontWeight','bold'],I:['fontStyle','italic'],SUP:['verticalAlign','super'],SUB:['verticalAlign','sub']};Roo.apply(this,A);this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterStyleToTag,Roo.htmleditor.Filter,{tag:true,tags:false,replaceTag:function(A){if(A.getAttribute("style")===null){return true;
index c44684b..9bc72e0 100644 (file)
@@ -26806,8 +26806,8 @@ Roo.extend(Roo.htmleditor.FilterWord, Roo.htmleditor.Filter,
             lvl = nlvl;
             
             // not starting at 1..
-            if (!stack[nlvl].hasAtribute("start") && num > 1) {
-                stack[nlvl].setAttribuet("start", num);
+            if (!stack[nlvl].hasAttribute("start") && num > 1) {
+                stack[nlvl].setAttribute("start", num);
             }
             
             var nli = stack[nlvl].appendChild(doc.createElement('li'));
index fd96021..43bf51a 100644 (file)
@@ -1159,7 +1159,7 @@ ns=ns.nextSibling;G=true;if(E.length&&E[0].hasAttribute('style')){var F=this.sty
 for(var i=0;i<E.length;i++){if(E[i].hasAttribute('style')&&E[i].getAttribute('style').match(/mso-list/)){G=true;break;}}if(!G){break;}C.push(ns);ns=ns.nextSibling;}if(!C.length){ns.className="";return;}var ul=A.ownerDocument.createElement(D);A.insertBefore(ul,p);
 var H=0;var I=[ul];var J=false;var K={};max_margins=-1;C.forEach(function(n,L){var M=n.getElementsByTagName('span');if(!M.length){A.removeChild(n);return;}var N=1;var O={};for(var i=0;i<M.length;i++){O=this.styleToObject(M[i]);if(typeof(O['mso-list'])=='undefined'){continue;
 }if(D=='ol'){var N=M[i].innerText.replace(/[^0-9]+]/g,'');}M[i].parentNode.removeChild(M[i]);break;}O=this.styleToObject(n);if(typeof(O['mso-list'])=='undefined'){A.removeChild(n);return;}var P=O['margin-left'];if(typeof(K[P])=='undefined'){max_margins++;
-K[P]=max_margins;}nlvl=K[P];if(nlvl>H){var Q=B.createElement(D);if(!J){J=B.createElement('li');I[H].appendChild(J);}J.appendChild(Q);I[nlvl]=Q;}H=nlvl;if(!I[nlvl].hasAtribute("start")&&N>1){I[nlvl].setAttribuet("start",N);}var R=I[nlvl].appendChild(B.createElement('li'));
+K[P]=max_margins;}nlvl=K[P];if(nlvl>H){var Q=B.createElement(D);if(!J){J=B.createElement('li');I[H].appendChild(J);}J.appendChild(Q);I[nlvl]=Q;}H=nlvl;if(!I[nlvl].hasAttribute("start")&&N>1){I[nlvl].setAttribute("start",N);}var R=I[nlvl].appendChild(B.createElement('li'));
 J=R;R.innerHTML=n.innerHTML;A.removeChild(n);},this);}});
 // Roo/htmleditor/FilterStyleToTag.js
 Roo.htmleditor.FilterStyleToTag=function(A){this.tags={B:['fontWeight','bold'],I:['fontStyle','italic'],SUP:['verticalAlign','super'],SUB:['verticalAlign','sub']};Roo.apply(this,A);this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterStyleToTag,Roo.htmleditor.Filter,{tag:true,tags:false,replaceTag:function(A){if(A.getAttribute("style")===null){return true;
index ddbc892..c7b10de 100644 (file)
@@ -46420,8 +46420,8 @@ Roo.extend(Roo.htmleditor.FilterWord, Roo.htmleditor.Filter,
             lvl = nlvl;
             
             // not starting at 1..
-            if (!stack[nlvl].hasAtribute("start") && num > 1) {
-                stack[nlvl].setAttribuet("start", num);
+            if (!stack[nlvl].hasAttribute("start") && num > 1) {
+                stack[nlvl].setAttribute("start", num);
             }
             
             var nli = stack[nlvl].appendChild(doc.createElement('li'));
index b27fe0e..65fd776 100644 (file)
@@ -21928,8 +21928,8 @@ Roo.extend(Roo.htmleditor.FilterWord, Roo.htmleditor.Filter,
             lvl = nlvl;
             
             // not starting at 1..
-            if (!stack[nlvl].hasAtribute("start") && num > 1) {
-                stack[nlvl].setAttribuet("start", num);
+            if (!stack[nlvl].hasAttribute("start") && num > 1) {
+                stack[nlvl].setAttribute("start", num);
             }
             
             var nli = stack[nlvl].appendChild(doc.createElement('li'));
index 093f8f0..445d5f7 100644 (file)
@@ -994,7 +994,7 @@ ns=ns.nextSibling;G=true;if(E.length&&E[0].hasAttribute('style')){var F=this.sty
 for(var i=0;i<E.length;i++){if(E[i].hasAttribute('style')&&E[i].getAttribute('style').match(/mso-list/)){G=true;break;}}if(!G){break;}C.push(ns);ns=ns.nextSibling;}if(!C.length){ns.className="";return;}var ul=A.ownerDocument.createElement(D);A.insertBefore(ul,p);
 var H=0;var I=[ul];var J=false;var K={};max_margins=-1;C.forEach(function(n,L){var M=n.getElementsByTagName('span');if(!M.length){A.removeChild(n);return;}var N=1;var O={};for(var i=0;i<M.length;i++){O=this.styleToObject(M[i]);if(typeof(O['mso-list'])=='undefined'){continue;
 }if(D=='ol'){var N=M[i].innerText.replace(/[^0-9]+]/g,'');}M[i].parentNode.removeChild(M[i]);break;}O=this.styleToObject(n);if(typeof(O['mso-list'])=='undefined'){A.removeChild(n);return;}var P=O['margin-left'];if(typeof(K[P])=='undefined'){max_margins++;
-K[P]=max_margins;}nlvl=K[P];if(nlvl>H){var Q=B.createElement(D);if(!J){J=B.createElement('li');I[H].appendChild(J);}J.appendChild(Q);I[nlvl]=Q;}H=nlvl;if(!I[nlvl].hasAtribute("start")&&N>1){I[nlvl].setAttribuet("start",N);}var R=I[nlvl].appendChild(B.createElement('li'));
+K[P]=max_margins;}nlvl=K[P];if(nlvl>H){var Q=B.createElement(D);if(!J){J=B.createElement('li');I[H].appendChild(J);}J.appendChild(Q);I[nlvl]=Q;}H=nlvl;if(!I[nlvl].hasAttribute("start")&&N>1){I[nlvl].setAttribute("start",N);}var R=I[nlvl].appendChild(B.createElement('li'));
 J=R;R.innerHTML=n.innerHTML;A.removeChild(n);},this);}});
 // Roo/htmleditor/FilterStyleToTag.js
 Roo.htmleditor.FilterStyleToTag=function(A){this.tags={B:['fontWeight','bold'],I:['fontStyle','italic'],SUP:['verticalAlign','super'],SUB:['verticalAlign','sub']};Roo.apply(this,A);this.walk(A.node);};Roo.extend(Roo.htmleditor.FilterStyleToTag,Roo.htmleditor.Filter,{tag:true,tags:false,replaceTag:function(A){if(A.getAttribute("style")===null){return true;