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 crash on drag dropping an embed node
Abdullah Atta025e23356a64
diff --git a/packages/editor/patches/prosemirror-view+1.33.1.patch b/packages/editor/patches/prosemirror-view+1.33.1.patchindex 4152026fa..23f3af9ed 100644--- a/packages/editor/patches/prosemirror-view+1.33.1.patch+++ b/packages/editor/patches/prosemirror-view+1.33.1.patch@@ -1,5 +1,5 @@diff --git a/node_modules/prosemirror-view/dist/index.cjs b/node_modules/prosemirror-view/dist/index.cjs-index 81a331c..5d6a5fa 100644+index 81a331c..6e60d39 100644--- a/node_modules/prosemirror-view/dist/index.cjs+++ b/node_modules/prosemirror-view/dist/index.cjs@@ -3380,7 +3380,7 @@ editHandlers.drop = function (view, _event) {@@ -7,12 +7,12 @@ index 81a331c..5d6a5fa 100644tr.setSelection(selectionBetween(view, $pos, tr.doc.resolve(end)));}- view.focus();-+ if (!dragging.nodeView) view.focus();++ if (!dragging || !dragging.nodeView) view.focus();view.dispatch(tr.setMeta("uiEvent", "drop"));};handlers.focus = function (view) {diff --git a/node_modules/prosemirror-view/dist/index.js b/node_modules/prosemirror-view/dist/index.js-index e076a13..5cd837f 100644+index e076a13..2a0fea5 100644--- a/node_modules/prosemirror-view/dist/index.js+++ b/node_modules/prosemirror-view/dist/index.js@@ -3647,7 +3647,7 @@ editHandlers.drop = (view, _event) => {@@ -20,7 +20,7 @@ index e076a13..5cd837f 100644tr.setSelection(selectionBetween(view, $pos, tr.doc.resolve(end)));}- view.focus();-+ if (!dragging.nodeView) view.focus();++ if (!dragging || !dragging.nodeView) view.focus();view.dispatch(tr.setMeta("uiEvent", "drop"));};handlers.focus = view => {