This commit is contained in:
Bruno Windels 2019-05-14 15:49:53 +01:00
parent 0b18ff52c5
commit fd31e793d1
3 changed files with 8 additions and 5 deletions

View file

@ -40,9 +40,7 @@ export function renderModel(editor, model) {
}
return lines;
}, [[]]);
// console.log(lines.map(parts => parts.map(p => p.toString())));
// TODO: refactor this code, DRY it
lines.forEach((parts, i) => {
let lineContainer = editor.childNodes[i];
while (lineContainer && (lineContainer.tagName !== "DIV" || !!lineContainer.className)) {