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 clearing editor
ammarahm-ed7216c4910507
diff --git a/apps/mobile/android/app/src/main/assets/texteditor.html b/apps/mobile/android/app/src/main/assets/texteditor.htmlindex 64072b675..99f78cae4 100644--- a/apps/mobile/android/app/src/main/assets/texteditor.html+++ b/apps/mobile/android/app/src/main/assets/texteditor.html@@ -1632,6 +1632,17 @@value = message.value}switch (type) {+ case "reset": {+ editor.history.clear();+ editor.setText('', 'api');+ document.getElementById('titleInput').value = '';+ document.getElementById('titleInput').blur();+ editor.blur();+ document.getElementById('infodate').innerText = "";+ document.getElementById('infosaved').innerText = "";+ document.getElementById("infowords").innerText = "";+ break+ }case "blur":document.getElementById('titleInput').blur();editor.blur();diff --git a/apps/mobile/html/Web.bundle/site/index.html b/apps/mobile/html/Web.bundle/site/index.htmlindex 95ad41fb5..0eda6435c 100644--- a/apps/mobile/html/Web.bundle/site/index.html+++ b/apps/mobile/html/Web.bundle/site/index.html@@ -1617,7 +1617,17 @@value = message.value}switch (type) {-+ case "reset": {+ editor.history.clear();+ editor.setText('', 'api');+ document.getElementById('titleInput').value = '';+ document.getElementById('titleInput').blur();+ editor.blur();+ document.getElementById('infodate').innerText = "";+ document.getElementById('infosaved').innerText = "";+ document.getElementById("infowords").innerText = "";+ break+ }case "blur":document.getElementById('titleInput').blur();editor.blur();@@ -1643,7 +1653,7 @@if (message.focus === "editor") {//editor.focus();} else {- document.getElementById('titleInput').focus();+ //document.getElementById('titleInput').focus();}}, 0)break;@@ -1657,7 +1667,7 @@editor.focus();break;case "focusTitle":- //document.getElementById('titleInput').focus();+ document.getElementById('titleInput').focus();break;case "nomenu":let isenabled = value;