Skip to content

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

fix scrolling

ammarahm-ed3ed24dad82d9
diff --git a/apps/mobile/android/app/src/main/assets/init.js b/apps/mobile/android/app/src/main/assets/init.js
index 789e9aa82..93daf83c8 100644
--- a/apps/mobile/android/app/src/main/assets/init.js
+++ b/apps/mobile/android/app/src/main/assets/init.js
@@ -13,7 +13,6 @@ function reactNativeEventHandler(type, value) {
let changeTimer = null;
-
function init_tiny(size) {
tinymce.init({
selector: '#tiny_textarea',
@@ -33,6 +32,7 @@ function init_tiny(size) {
},
statusbar: false,
contextmenu: false,
+ browser_spellcheck: true,
autoresize_bottom_margin: 0,
imagetools_toolbar: 'rotateleft rotateright | flipv fliph',
placeholder: 'Start writing your note here',
@@ -70,6 +70,12 @@ function init_tiny(size) {
reactNativeEventHandler('noteLoaded', true);
}
});
+ editor.on('ScrollIntoView', (e) => {
+ e.preventDefault();
+ let offset = e.elm.offsetTop + 60;
+ console.log(e)
+ document.scrollingElement.scrollTo({top:offset})
+ });
editor.on('keyup', onChange);
editor.on('Change', onChange);