Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: fix inserting images in outline lists * inserting images in outline list was splitting the outline list into two, this commit fixes it

01zulfi652f6eab0bb4
diff --git a/packages/editor/src/extensions/outline-list-item/outline-list-item.ts b/packages/editor/src/extensions/outline-list-item/outline-list-item.ts
index 86fe24405..8d81db153 100644
--- a/packages/editor/src/extensions/outline-list-item/outline-list-item.ts
+++ b/packages/editor/src/extensions/outline-list-item/outline-list-item.ts
@@ -52,7 +52,7 @@ export const OutlineListItem = Node.create<ListItemOptions>({
};
},
- content: "paragraph+ list?",
+ content: "paragraph+ (image* | list?)",
defining: true,