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
feat: enable pro wall in editor
thecodrrc50411f003c0
diff --git a/apps/web/src/components/editor/tinymce.js b/apps/web/src/components/editor/tinymce.jsindex 6b37c90e0..31865d8de 100644--- a/apps/web/src/components/editor/tinymce.js+++ b/apps/web/src/components/editor/tinymce.js@@ -193,18 +193,18 @@ function TinyMCE(props) {browser_spellcheck: true,autoresize_bottom_margin: 100,}}- // onBeforeExecCommand={async (command) => {- // if (- // premiumCommands.some(- // (cmd) => command.command === cmd && !command.value.paste- // ) &&- // !isUserPremium()- // ) {- // command.preventDefault();- // await showBuyDialog();- // return;- // }- // }}+ onBeforeExecCommand={async (command) => {+ if (+ premiumCommands.some(+ (cmd) => command.command === cmd && !command.value.paste+ ) &&+ !isUserPremium()+ ) {+ command.preventDefault();+ await showBuyDialog();+ return;+ }+ }}onKeyDown={(e) => {if (e.ctrlKey && e.key === "s") {e.preventDefault();