Changed Roo/htmleditor/FilterWord.js
[roojs1] / Roo / htmleditor / FilterWord.js
index 351e170..fb55b9f 100644 (file)
@@ -223,6 +223,10 @@ Roo.extend(Roo.htmleditor.FilterWord, Roo.htmleditor.Filter,
             if (nlvl > lvl) {
                 //new indent
                 var nul = doc.createElement('ul'); // what about number lists...
+                if (!last_li) {
+                    last_li = doc.createElement('li');
+                    stack[lvl].appendChild(last_li);
+                }
                 last_li.appendChild(nul);
                 stack[nlvl] = nul;