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: make image selectable in readonly mode
Abdullah Atta0992d4eeabd5
diff --git a/packages/editor/src/extensions/image/image.ts b/packages/editor/src/extensions/image/image.tsindex cfb55afda..b2595b5fd 100644--- a/packages/editor/src/extensions/image/image.ts+++ b/packages/editor/src/extensions/image/image.ts@@ -178,7 +178,8 @@ export const ImageNode = Node.create<ImageOptions>({addNodeView() {return createSelectionBasedNodeView(ImageComponent, {- shouldUpdate: (prev, next) => !hasSameAttributes(prev.attrs, next.attrs)+ shouldUpdate: (prev, next) => !hasSameAttributes(prev.attrs, next.attrs),+ forceEnableSelection: true});},