fix(editor): should delete collapsed siblings when delete heading (#9376)

This commit is contained in:
Flrande
2024-12-30 08:12:04 +00:00
parent 406460a3af
commit 4fee0e2eb3
6 changed files with 70 additions and 112 deletions
@@ -34,6 +34,7 @@ export class ListBlockComponent extends CaptionedBlockComponent<ListBlockModel>
private readonly _onClickIcon = (e: MouseEvent) => {
e.stopPropagation();
e.preventDefault();
if (this.model.type === 'toggle') {
if (this.doc.readonly) {