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 tooltip not opening in toolbar
ammarahm-edec594be2fee1
diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/item.js b/apps/mobile/src/views/Editor/tiny/toolbar/item.jsindex 8aefbc7b2..5e666eb52 100644--- a/apps/mobile/src/views/Editor/tiny/toolbar/item.js+++ b/apps/mobile/src/views/Editor/tiny/toolbar/item.js@@ -56,6 +56,7 @@ const ToolbarItem = ({}, []);useEffect(() => {+ console.log('called')onSelectionChange(properties.selection);}, []);@@ -63,7 +64,7 @@ const ToolbarItem = ({properties.selection = data;let formats = Object.keys(data);- if (!data['link']) {+ if (!data['link'] && type === "tooltip") {eSendEvent('showTooltip');}if (format === 'header' && type === 'tooltip') {@@ -251,6 +252,17 @@ const ToolbarItem = ({}}+ if (format === 'pre') {+ if (selected) {+ formatSelection(`tinymce.activeEditor.execCommand("mceInsertNewLine", false, { shiftKey: true });`);+ focusEditor(format);+ editing.tooltip = null;+ return;+ } else {+ value = "add";+ }+ }+if (selected && (format === 'ol' || format === 'ul' || format === 'cl')) {formatSelection(execCommands.removeList);} else if (value || value === '') {