A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
editor: fix outline list has no data-block-id attribute
Abdullah Atta4349445910ce
diff --git a/packages/editor/src/extensions/outline-list/outline-list.ts b/packages/editor/src/extensions/outline-list/outline-list.tsindex c4c5a68a5..0bc2b8b73 100644--- a/packages/editor/src/extensions/outline-list/outline-list.ts+++ b/packages/editor/src/extensions/outline-list/outline-list.ts@@ -123,10 +123,12 @@ export const OutlineList = Node.create<OutlineListOptions>({];},addNodeView() {- return ({ node }) => {+ return ({ node, HTMLAttributes }) => {const ul = document.createElement("ul");ul.classList.add("outline-list");if (node.attrs.textDirection) ul.dir = node.attrs.textDirection;+ for (const key in HTMLAttributes)+ ul.setAttribute(key, HTMLAttributes[key]);return {dom: ul,contentDOM: ul