Skip to content

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

fix link bar hiding on edit

ammarahm-ed76a3f06e4d98
diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/constants.js b/apps/mobile/src/views/Editor/tiny/toolbar/constants.js
index 544842615..891edd128 100644
--- a/apps/mobile/src/views/Editor/tiny/toolbar/constants.js
+++ b/apps/mobile/src/views/Editor/tiny/toolbar/constants.js
@@ -17,8 +17,8 @@ export function formatSelection(command) {
EditorWebView.current?.injectJavaScript(command);
}
-export function focusEditor(format) {
- eSendEvent("showTooltip");
+export function focusEditor(format,kill=true) {
+ kill && eSendEvent("showTooltip");
Platform.OS === 'android' && EditorWebView.current.requestFocus();
if (format === 'link' || format === 'video') {
tiny.call(EditorWebView, tiny.blur + ' ' + tiny.focusEditor);