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 plain text viewer not loading on ios
ammarahm-ed4b0d2a73a2f4
diff --git a/apps/mobile/android/app/src/main/assets/plaineditor.html b/apps/mobile/android/app/src/main/assets/plaineditor.htmlindex 356bbc7b3..c972282cc 100644--- a/apps/mobile/android/app/src/main/assets/plaineditor.html+++ b/apps/mobile/android/app/src/main/assets/plaineditor.html@@ -192,9 +192,6 @@<script src="./listeners.js"></script><script src="./constants.js"></script><script>- if (window.location.href.includes("nocontenteditable")) {- document.querySelector(".htmldiff_div").setAttribute("contenteditable","false");- }function reactNativeEventHandler(type, value) {if (window.ReactNativeWebView) {window.ReactNativeWebView.postMessage(diff --git a/apps/mobile/html/Web.bundle/site/listeners.js b/apps/mobile/html/Web.bundle/site/listeners.jsindex 70ca89121..bc042f5d7 100755--- a/apps/mobile/html/Web.bundle/site/listeners.js+++ b/apps/mobile/html/Web.bundle/site/listeners.js@@ -141,6 +141,7 @@ function attachMessageListener() {break;case 'htmldiff':document.getElementsByClassName('htmldiff_div')[0].innerHTML = value;+ document.querySelector(".htmldiff_div").setAttribute("contenteditable","false");break;case 'theme':pageTheme.colors = JSON.parse(value);diff --git a/apps/mobile/html/Web.bundle/site/plaineditor.html b/apps/mobile/html/Web.bundle/site/plaineditor.htmlindex 356bbc7b3..c972282cc 100644--- a/apps/mobile/html/Web.bundle/site/plaineditor.html+++ b/apps/mobile/html/Web.bundle/site/plaineditor.html@@ -192,9 +192,6 @@<script src="./listeners.js"></script><script src="./constants.js"></script><script>- if (window.location.href.includes("nocontenteditable")) {- document.querySelector(".htmldiff_div").setAttribute("contenteditable","false");- }function reactNativeEventHandler(type, value) {if (window.ReactNativeWebView) {window.ReactNativeWebView.postMessage(diff --git a/apps/mobile/src/components/MergeEditor/index.js b/apps/mobile/src/components/MergeEditor/index.jsindex 0d7432d70..ab8f4ea58 100644--- a/apps/mobile/src/components/MergeEditor/index.js+++ b/apps/mobile/src/components/MergeEditor/index.js@@ -422,7 +422,7 @@ const MergeEditor = () => {javaScriptEnabled={true}cacheEnabled={true}source={{- uri: sourceUri + 'plaineditor.html?nocontenteditable=true'+ uri: sourceUri + 'plaineditor.html'}}/></Animated.View>@@ -554,7 +554,7 @@ const MergeEditor = () => {javaScriptEnabled={true}cacheEnabled={true}source={{- uri: sourceUri + 'plaineditor.html?nocontenteditable=true'+ uri: sourceUri + 'plaineditor.html'}}/></Animated.View>