Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

undo changes in edtior for testing

ammarahm-ed2650d15fda31
diff --git a/apps/mobile/android/app/src/main/assets/listeners.js b/apps/mobile/android/app/src/main/assets/listeners.js
index 1ecbd0b48..868090195 100644
--- a/apps/mobile/android/app/src/main/assets/listeners.js
+++ b/apps/mobile/android/app/src/main/assets/listeners.js
@@ -27,7 +27,7 @@ function onTitleChange() {
}
if (titleMessage && typeof titleMessage.value === 'string') {
- //window.ReactNativeWebView.postMessage(JSON.stringify(titleMessage));
+ window.ReactNativeWebView.postMessage(JSON.stringify(titleMessage));
}
}
@@ -36,7 +36,7 @@ function attachEditorListeners() {
editor.once('text-change', function () {
- //window.ReactNativeWebView.postMessage("loaded");
+ window.ReactNativeWebView.postMessage("loaded");
let text = editor.getText();
document.getElementById("infowords").innerText = text.split(' ').length + ' words';
@@ -213,7 +213,7 @@ function attachEditorListeners() {
document.getElementById("infowords").innerText = m.text.split(' ').length + ' words';
m.html = editor.root.innerHTML;
m.type = 'content';
- //window.ReactNativeWebView.postMessage(JSON.stringify(m));
+ window.ReactNativeWebView.postMessage(JSON.stringify(m));
});
}
\ No newline at end of file