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: update tinymce plugins
thecodrr9a2351ebb050
diff --git a/apps/web/package.json b/apps/web/package.jsonindex 434c45770..befb73807 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -11,7 +11,7 @@"@mdi/react": "^1.4.0","@notesnook/desktop": "./desktop/","@rebass/forms": "^4.0.6",- "@streetwritersco/tinymce-plugins": "^1.0.3",+ "@streetwritersco/tinymce-plugins": "^1.1.0","@tinymce/tinymce-react": "^3.12.6","clipboard": "^2.0.6","cogo-toast": "^4.2.3",diff --git a/apps/web/src/components/editor/tinymce.js b/apps/web/src/components/editor/tinymce.jsindex 0254b3db0..e5207c5c6 100644--- a/apps/web/src/components/editor/tinymce.js+++ b/apps/web/src/components/editor/tinymce.js@@ -30,11 +30,11 @@ import "@streetwritersco/tinymce-plugins/checklist";import "@streetwritersco/tinymce-plugins/collapsibleheaders";import "@streetwritersco/tinymce-plugins/paste";import "@streetwritersco/tinymce-plugins/shortcuts";+import "@streetwritersco/tinymce-plugins/keyboardquirks";import { Editor } from "@tinymce/tinymce-react";import { showBuyDialog } from "../../common/dialog-controller";import { useStore as useThemeStore } from "../../stores/theme-store";import { isTablet } from "../../utils/dimensions";-import { KeyboardEventManager } from "../../utils/keyboard";import { showToast } from "../../utils/toast";import { useIsUserPremium } from "../../hooks/use-is-user-premium";@@ -109,7 +109,7 @@ const plugins = {default:"importcss searchreplace autolink directionality media table hr advlist lists imagetools noneditable quickbars autoresize",custom:- "collapsibleheaders shortlink quickimage paste codeblock inlinecode shortcuts checklist",+ "keyboardquirks collapsibleheaders shortlink quickimage paste codeblock inlinecode shortcuts checklist",pro: "textpattern",};@@ -130,6 +130,8 @@ function TinyMCE(props) {const isUserPremium = useIsUserPremium();const tinymceRef = editorRef;useEffect(() => {+ if (!tinymceRef.current.editor.dom) return;+tinymceRef.current.editor.dom.styleSheetLoader.unload(`${oldSkin}/content.inline.min.css`);@@ -258,17 +260,11 @@ function TinyMCE(props) {}}}onKeyDown={(e) => {- e.getModifierState = undefined;- KeyboardEventManager.publish("keydown", e);if (e.ctrlKey && e.key === "s") {e.preventDefault();onSave();}}}- onKeyUp={(e) => {- e.getModifierState = undefined;- KeyboardEventManager.publish("keyup", e);- }}onEditorChange={(content, editor) => {if (onWordCountChanged) {const text = editor.getContent({diff --git a/apps/web/yarn.lock b/apps/web/yarn.lockindex ca92847cb..ab6fd7cc5 100644--- a/apps/web/yarn.lock+++ b/apps/web/yarn.lock@@ -2169,10 +2169,10 @@resolved "https://registry.yarnpkg.com/@stablelib/wipe/-/wipe-1.0.1.tgz#d21401f1d59ade56a62e139462a97f104ed19a36"integrity sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg==-"@streetwritersco/tinymce-plugins@^1.0.3":- version "1.0.3"- resolved "https://registry.yarnpkg.com/@streetwritersco/tinymce-plugins/-/tinymce-plugins-1.0.3.tgz#7100740b767563e22c8fe1bf7f4421a50f9e69a9"- integrity sha512-FEsMkVuyqcv0PdHPg5Pon7M1QZEozVDBsPPJ/sT1y/tpbW0JMAUyy1A5/dbUd4NOwJPVKSzOPJG5riBUt+Tt1w==+"@streetwritersco/tinymce-plugins@^1.1.0":+ version "1.1.0"+ resolved "https://registry.yarnpkg.com/@streetwritersco/tinymce-plugins/-/tinymce-plugins-1.1.0.tgz#f91f6cda98d69344dfd6b0e949bf6e58d193b787"+ integrity sha512-tqy6vpnc8HptSHcYZNko35Ucxbh5Nd63k5Nk3zBnDohGBeZnsAIXgKaRiQfRxNDaACkcd3QREg2pFEQnD0Bnkg==dependencies:compressorjs "^1.0.7"highlight.js "^11.1.0"