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 notes not loading
ammarahm-eda6f725d70c0c
diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.jsindex e229321d2..ffb70d0dd 100644--- a/apps/mobile/src/views/Editor/Functions.js+++ b/apps/mobile/src/views/Editor/Functions.js@@ -467,6 +467,9 @@ const loadNoteInEditor = async () => {if (note?.id) {tiny.call(EditorWebView, tiny.setTitle(title));intent = false;++ console.log(content.data);+tiny.call(EditorWebView, tiny.html(content.data));setColors();tiny.call(EditorWebView, tiny.updateDateEdited(timeConverter(note.dateEdited)));diff --git a/apps/mobile/src/views/Editor/tiny/tiny.js b/apps/mobile/src/views/Editor/tiny/tiny.jsindex 16c85bc77..7e963d277 100644--- a/apps/mobile/src/views/Editor/tiny/tiny.js+++ b/apps/mobile/src/views/Editor/tiny/tiny.js@@ -3,7 +3,7 @@ isLoading = true;document.getElementById("titleInput").value = '';autosize();tinyMCE.activeEditor.setContent('');-editor.undoManager.clear();+tinymce.activeEditor.undoManager.clear();document.activeElement.blur();window.blur();`;@@ -49,7 +49,7 @@ const updateSavingState = (value) => ``;export const clearEditor = `- editor.setContent("");+tinymce.activeEditor.setContent("");`;const clearTitle = `document.getElementById(titleInput).value = '';@@ -112,13 +112,13 @@ isLoading = true;const html = (value) => `isLoading = true;-editor.setContent("${value}");+tinymce.activeEditor.setContent(\`${value}\`);info.querySelector('#infowords').innerText =-editor.plugins.wordcount.getCount() + " words";+tinymce.activeEditor.plugins.wordcount.getCount() + " words";`;const focusEditor = `- editor.focus();+tinymce.activeEditor.focus();`;function call(webview, func) {@@ -127,17 +127,17 @@ function call(webview, func) {const undo = `-editor.undoManager.undo();+tinymce.activeEditor.undoManager.undo();`;const redo = `-editor.undoManager.redo();+tinymce.activeEditor.undoManager.redo();`;const clearHistory = `-editor.undoManager.clear();+tinymce.activeEditor.undoManager.clear();`;export default {diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/item.js b/apps/mobile/src/views/Editor/tiny/toolbar/item.jsindex 5f27309bb..0439c58da 100644--- a/apps/mobile/src/views/Editor/tiny/toolbar/item.js+++ b/apps/mobile/src/views/Editor/tiny/toolbar/item.js@@ -71,7 +71,6 @@ const ToolbarItem = ({return;}if (formats.indexOf(format) > -1 && format !== 'removeformat') {-if (format === 'forecolor' || format === 'hilitecolor') {if (!data[format]) {setSelected(false);@@ -84,8 +83,8 @@ const ToolbarItem = ({}}- if (format === "link") {- console.log(format,data[format]);+ if (format === 'link') {+ console.log(format, data[format]);properties.selection = data;properties.pauseSelectionChange = true;eSendEvent('showTooltip', {@@ -96,14 +95,6 @@ const ToolbarItem = ({return;}- if (- format === 'fontname' &&- (data[format].includes('courier') ||- data[format].includes('times new roman'))- ) {- data[format] = JSON.parse(data[format]);- }-if ((format === 'fontsize' ||format === 'ul' ||@@ -248,9 +239,10 @@ const ToolbarItem = ({};return (- <View style={{- marginHorizontal:5- }}>+ <View+ style={{+ marginHorizontal: 5,+ }}><PressableButtontype={selected ? 'shade' : 'transparent'}customColor={selected && color}@@ -270,7 +262,6 @@ const ToolbarItem = ({borderRadius: 5,marginTop: 5,marginBottom: 5,-}}>{type === 'tooltip' && (<ToolbarItemPin format={format} color={selected && color} />