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
call onUndoChange whenever node changes
ammarahm-ed005303820478
diff --git a/apps/mobile/html/Web.bundle/site/init.js b/apps/mobile/html/Web.bundle/site/init.jsindex 0b6fb3076..af5f9e397 100755--- a/apps/mobile/html/Web.bundle/site/init.js+++ b/apps/mobile/html/Web.bundle/site/init.js@@ -380,6 +380,7 @@ function init_tiny(size) {});editor.on('NewBlock', function (e) {+ console.log('New Block');const {newBlock} = e;let target;if (newBlock) {@@ -430,18 +431,22 @@ function init_tiny(size) {}window.prevContent = '';const onChange = function (event) {+ console.log(event.type, event.selectionChange);+ onUndoChange();if (event.type === 'nodechange' && !event.selectionChange) return;+if (isLoading) {isLoading = false;return;}if (editor.plugins.wordcount.getCount() === 0) return;+ console.log('saving now doc');clearTimeout(changeTimer);changeTimer = null;changeTimer = setTimeout(function () {selectchange();reactNativeEventHandler('tiny', editor.getContent());- }, 1);+ }, 10);};function getNodeColor(element) {