X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsrc%2FRoo_htmleditor_FilterWord.js.html;h=2ce51a4eaa286a9f21485820ce3c3d5caa7af87d;hb=10db261e7d6b23c055f07797e9afef70ffed408a;hp=39c0cf9e51821d5e17ce4b311c6c983fa316fa5f;hpb=5e20d2d4c06f3b903975ec0a90550d5d9cca8779;p=roojs1 diff --git a/docs/src/Roo_htmleditor_FilterWord.js.html b/docs/src/Roo_htmleditor_FilterWord.js.html index 39c0cf9e51..2ce51a4eaa 100644 --- a/docs/src/Roo_htmleditor_FilterWord.js.html +++ b/docs/src/Roo_htmleditor_FilterWord.js.html @@ -134,7 +134,7 @@ var kv = s.split(":"); // what ever is left... we allow. - ret[kv[0]] = kv[1]; + ret[kv[0].trim()] = kv[1]; }); return ret; }, @@ -162,6 +162,8 @@ parent = p.parentNode, doc = parent.ownerDocument, items = []; + + while (ns) { if (ns.nodeType != 1) { ns = ns.nextSibling; @@ -172,14 +174,16 @@ } items.push(ns); ns = ns.nextSibling; - } + + var ul = parent.ownerDocument.createElement('ul'); // what about number lists... parent.insertBefore(ul, p); var lvl = 0; var stack = [ ul ]; var last_li = false; - items.forEach(function(n) { + + items.forEach(function(n, ipos) { //Roo.log("got innertHMLT=" + n.innerHTML); var spans = n.getElementsByTagName('span'); @@ -211,12 +215,16 @@ return; } - var nlvl = (style['mso-list'].split(' ')[1].replace(/level/,'') *1) - 1; + var nlvl = (style['mso-list'].split(' ')[1].replace(/level/,'') *1) - 1 ; + + + if (nlvl > lvl) { //new indent var nul = doc.createElement('ul'); // what about number lists... last_li.appendChild(nul); stack[nlvl] = nul; + } lvl = nlvl;