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
web: clicking under table should create a new paragraph
Abdullah Atta74bcd1b27d18
diff --git a/apps/web/src/components/editor/tiptap.tsx b/apps/web/src/components/editor/tiptap.tsxindex 315aa3f4c..bc3f98e88 100644--- a/apps/web/src/components/editor/tiptap.tsx+++ b/apps/web/src/components/editor/tiptap.tsx@@ -258,7 +258,11 @@ function TipTap(props: TipTapProps) {const isEmpty = lastNode?.nodeSize === 2;if (isLastNodeParagraph && isEmpty) currentEditor?.commands.focus("end");else {- currentEditor?.chain().focus("end").insertContent("<p></p>").run();+ currentEditor+ ?.chain()+ .insertContentAt(currentEditor?.state.doc.nodeSize - 2, "<p></p>")+ .focus("end")+ .run();}}editorContainer.addEventListener("click", onClick);