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: blot is deleted on auto-correct
thecodrr849ce0997b5a
diff --git a/apps/web/src/components/editor/react-quill.js b/apps/web/src/components/editor/react-quill.jsindex ac7167628..61e1c5db4 100644--- a/apps/web/src/components/editor/react-quill.js+++ b/apps/web/src/components/editor/react-quill.js@@ -18,7 +18,7 @@ Quill.register("modules/markdownShortcuts", MarkdownShortcuts);Quill.register("modules/magicUrl", MagicUrl);Quill.register("modules/focus", QuillFocus);-let Embed = Quill.import("blots/embed");+const Embed = Quill.import("blots/embed");function lineBreakMatcher() {return { ops: [{ insert: { manualbreak: true } }] };@@ -29,6 +29,13 @@ SmartBreak.blotName = "manualbreak";SmartBreak.tagName = "BR";Quill.register(SmartBreak);+const Inline = Quill.import("blots/inline");++// HOTFIX: fix blot getting deleted on auto-correct+class FontBlot extends Inline {}+FontBlot.tagName = "FONT";+Quill.register(FontBlot);+function moduleHandlerWrapper(type, isSimple) {return async function (value) {if (isSimple && !isUserPremium()) {@@ -81,7 +88,7 @@ const quillModules = (isSimple, isFocusMode, isMobile) => ({[{ color: [] }, { background: [] }],[{ header: [false, 2, 3, 4, 5, 6] }],[{ size: ["small", false, "large", "huge"] }],- [("link", "image", "video")],+ ["link", "image", "video"],[{ direction: "rtl" }, "clean"],],handlers: {diff --git a/apps/web/yarn.lock b/apps/web/yarn.lockindex cfb57b13b..ea41266fe 100644--- a/apps/web/yarn.lock+++ b/apps/web/yarn.lock@@ -10687,7 +10687,7 @@ quill-magic-url@^1.0.3:"quill@https://github.com/thecodrr/quill.git#develop":version "2.0.0-dev.4"- resolved "https://github.com/thecodrr/quill.git#86f978ccc26af8d4e44d641d565ac0d07fd6a40c"+ resolved "https://github.com/thecodrr/quill.git#54013b85f043ca0b141a4d01ef761a30b3fad4c9"dependencies:eventemitter3 "^4.0.0"lodash.clonedeep "^4.5.0"