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
restore range only if current_selection_range has a value
ammarahm-edd051883588a1
diff --git a/apps/mobile/src/screens/editor/tiny/tiny.js b/apps/mobile/src/screens/editor/tiny/tiny.jsindex 51887b2b9..549f8f5dc 100644--- a/apps/mobile/src/screens/editor/tiny/tiny.js+++ b/apps/mobile/src/screens/editor/tiny/tiny.js@@ -131,7 +131,10 @@ autosize();`;const cacheRange = `current_selection_range = editor.selection.getRng();`;-const restoreRange = `editor.selection.setRng(current_selection_range);`;+const restoreRange = `+if (current_selection_range) {+ editor.selection.setRng(current_selection_range);+}`;const clearRange = `current_selection_range = null`;const toggleFormat = format => {