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
fix: do not focus editor on image injection
thecodrrbdf68ca2bb1a
diff --git a/apps/web/src/components/editor/header.js b/apps/web/src/components/editor/header.jsindex c84c3e991..53a2a41dc 100644--- a/apps/web/src/components/editor/header.js+++ b/apps/web/src/components/editor/header.js@@ -110,7 +110,7 @@ function Autosuggest({sx={{ width: "auto", border: "none", p: 0 }}placeholder="Add a tag..."data-test-id="editor-tag-input"- fontSize="body"+ fontSize="subtitle"onChange={(e) => {const { value } = e.target;if (!value.length) {diff --git a/apps/web/src/components/editor/tinymce.js b/apps/web/src/components/editor/tinymce.jsindex e8bad27ef..0561c088d 100644--- a/apps/web/src/components/editor/tinymce.js+++ b/apps/web/src/components/editor/tinymce.js@@ -169,7 +169,7 @@ function TinyMCE(props) {(image) => {const { groupId, hash, src } = image;if (groupId?.startsWith("monograph")) return;- tinymceRef.current.editor.execCommand("mceReplaceImage", { hash, src });+ tinymceRef.current.editor._replaceImage({ hash, src });});return () => {