Skip to content

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

fix: tap on att. on phone changes it to paragraph

thecodrr7e7dfb41e3b8
diff --git a/apps/web/src/components/editor/tinymce.js b/apps/web/src/components/editor/tinymce.js
index 4b9705b97..5289234ef 100644
--- a/apps/web/src/components/editor/tinymce.js
+++ b/apps/web/src/components/editor/tinymce.js
@@ -222,6 +222,11 @@ function TinyMCE(props) {
onInit(editor);
},
setup: (editor) => {
+ editor.on("tap", (e) => {
+ if (e.target.classList.contains("mce-content-body")) {
+ e.preventDefault();
+ }
+ });
editor.on("ScrollIntoView", (e) => {
e.preventDefault();
e.elm.scrollIntoView({