Skip to content

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

fix placeholder not loading on first editor load

ammarahm-eded11fb0c9b6b
diff --git a/apps/mobile/src/screens/editor/Functions.js b/apps/mobile/src/screens/editor/Functions.js
index 17d0cd82d..85e23c40f 100644
--- a/apps/mobile/src/screens/editor/Functions.js
+++ b/apps/mobile/src/screens/editor/Functions.js
@@ -899,7 +899,7 @@ export async function saveNote(title, _id, data, type, _sessionId, _historySessi
}
isSaving = false;
}
-
+let isInitalLaunch = true;
export async function onWebViewLoad(premium, colors) {
eSendEvent('resetcomplete');
setTimeout(() => {
@@ -910,6 +910,11 @@ export async function onWebViewLoad(premium, colors) {
}
}, 300);
setColors(colors);
+
+ if (isInitalLaunch) {
+ tiny.call(EditorWebView, tiny.setPlaceholder(placeholderTip));
+ isInitalLaunch = false;
+ }
}
async function restoreEditorState() {
diff --git a/apps/mobile/src/services/tipmanager.ts b/apps/mobile/src/services/tipmanager.ts
index b01243171..f3340bb92 100644
--- a/apps/mobile/src/services/tipmanager.ts
+++ b/apps/mobile/src/services/tipmanager.ts
@@ -205,5 +205,10 @@ const placeholderTips = [
"You can publish a note and share it with anyone. Even if they don't use Notesnook!",
'Published notes can be encrypted. Which means only you and the person you share the password with can read them.',
'You can change default font size from editor settings at the end of toolbar',
- 'The editor toolbar can be scrolled horizontally to add more formats and blocks'
+ 'The editor toolbar can be scrolled horizontally to add more formats and blocks',
+ `To be left alone is the most precious thing one can ask of the modern world. - Anthony Burgess`,
+ `Arguing that you don't care about the right to privacy because you have nothing to hide is no different than saying you don't care about free speech because you have nothing to say.” ― Edward Snowden `,
+ `Privacy is not something that I'm merely entitled to, it's an absolute prerequisite.” ― Marlon Brando `,
+ `You can disable syncing on notes you don't want to be synced or stored anywhere other than your phone.`,
+ `We value your feedback so join us on Discord/Telegram and share your experiences and ideas. Let's build the best (and private) note taking app together.`
];