Skip to content

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

fix: empty editor is not easily focusable

thecodrr4f1ce00dec9e
diff --git a/apps/web/src/components/editor/tinymce.js b/apps/web/src/components/editor/tinymce.js
index 8c2d92df3..0b74163fe 100644
--- a/apps/web/src/components/editor/tinymce.js
+++ b/apps/web/src/components/editor/tinymce.js
@@ -228,7 +228,10 @@ function TinyMCE(props) {
},
setup: (editor) => {
editor.on("tap", (e) => {
- if (e.target.classList.contains("mce-content-body")) {
+ if (
+ e.target.classList.contains("mce-content-body") &&
+ !e.target.innerText.length > 0
+ ) {
e.preventDefault();
}
});