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: remove usage of nodeChange event
ammarahm-ed82610a35c5fa
diff --git a/apps/mobile/src/views/Editor/tiny/tiny.js b/apps/mobile/src/views/Editor/tiny/tiny.jsindex a5459b77f..4ccc6d713 100644--- a/apps/mobile/src/views/Editor/tiny/tiny.js+++ b/apps/mobile/src/views/Editor/tiny/tiny.js@@ -54,7 +54,7 @@ const pre = `(function() {});});tinymce.activeEditor.selection.setRng(rng, true);- tinymce.activeEditor.nodeChanged();+ tinymce.activeEditor.fire("input");};let node = tinymce.activeEditor.selection.getNode();diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/commands.js b/apps/mobile/src/views/Editor/tiny/toolbar/commands.jsindex afdf7812f..c7b4ca6d2 100644--- a/apps/mobile/src/views/Editor/tiny/toolbar/commands.js+++ b/apps/mobile/src/views/Editor/tiny/toolbar/commands.js@@ -75,7 +75,7 @@ export const execCommands = {if (body.lastElementChild && body.lastElementChild.innerHTML === tinymce.activeEditor.selection.getNode().innerHTML) {let rng = tinymce.activeEditor.selection.getRng()tinymce.activeEditor.execCommand("mceInsertNewLine")- tinymce.activeEditor.nodeChanged({selectionChange:true})+ tinymce.activeEditor.fire("input");tinymce.activeEditor.selection.setRng(rng)}editor.undoManager.transact(function() {@@ -135,7 +135,7 @@ export const execCommands = {if (tinymce.activeEditor.selection.getNode().tagName === 'IMG') {tinymce.activeEditor.undoManager.transact(function() {tinymce.activeEditor.execCommand('Delete');});setTimeout(function() {- tinymce.activeEditor.nodeChanged({selectionChange:true})+ tinymce.activeEditor.fire("input");},100)}})();@@ -158,7 +158,7 @@ const setFloat = float => `(function () {tinymce.activeEditor.undoManager.transact(function() {node.style.float = "${float}";setTimeout(function() {- tinymce.activeEditor.nodeChanged({selectionChange:true})+ tinymce.activeEditor.fire("input");},100)});}@@ -181,7 +181,7 @@ if (tinymce.activeEditor.selection.getNode().tagName === 'IMG') {node.width = originalWidth * ${size}setTimeout(function() {- tinymce.activeEditor.nodeChanged({selectionChange:true})+ tinymce.activeEditor.fire("input");},100)});}diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/picker.js b/apps/mobile/src/views/Editor/tiny/toolbar/picker.jsindex 0d928e46f..889c47ab6 100644--- a/apps/mobile/src/views/Editor/tiny/toolbar/picker.js+++ b/apps/mobile/src/views/Editor/tiny/toolbar/picker.js@@ -131,7 +131,7 @@ const file = async () => {editor.undoManager.transact(function() {tinymce.activeEditor.execCommand('mceAttachFile',file);setTimeout(function() {- tinymce.activeEditor.nodeChanged({selectionChange:true})+ tinymce.activeEditor.fire("input");},100)});@@ -294,7 +294,7 @@ const handleImageResponse = async response => {editor.undoManager.transact(function() {tinymce.activeEditor.execCommand('mceAttachImage',image);setTimeout(function() {- tinymce.activeEditor.nodeChanged({selectionChange:true})+ tinymce.activeEditor.fire("input");},100)});})();