diff --git a/packages/engine/src/block/index.ts b/packages/engine/src/block/index.ts index b966de06..a324501b 100644 --- a/packages/engine/src/block/index.ts +++ b/packages/engine/src/block/index.ts @@ -548,6 +548,16 @@ class Block implements BlockModelInterface { if (!range) change.apply(safeRange); return; } + if ( + node.isList(safeRange.startNode) || + safeRange.startNode.closest('li').length > 0 + ) { + const fragment = doc.createDocumentFragment(); + fragment.appendChild(block[0]); + list.insert(fragment, range); + if (!range) change.apply(safeRange); + return; + } //