Skip to content

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

fix: sliding toolbar on tablet

thecodrr91d684045e88
diff --git a/apps/web/src/components/editor/tinymce.js b/apps/web/src/components/editor/tinymce.js
index e01b517f4..5221a9e5f 100644
--- a/apps/web/src/components/editor/tinymce.js
+++ b/apps/web/src/components/editor/tinymce.js
@@ -27,6 +27,7 @@ import { Editor } from "@tinymce/tinymce-react";
import { isUserPremium } from "../../common";
import { showBuyDialog } from "../../common/dialog-controller";
import { useStore as useThemeStore } from "../../stores/theme-store";
+import { isTablet } from "../../utils/dimensions";
const markdownPatterns = [
{ start: "```", replacement: "<pre></pre>" },
@@ -145,7 +146,7 @@ function TinyMCE(props) {
width: "100%",
plugins:
"paste importcss searchreplace autolink directionality code quickimage shortlink media table hr advlist lists imagetools textpattern noneditable quickbars autoresize",
- toolbar_mode: "sliding",
+ toolbar_mode: isTablet() ? "scrolling" : "sliding",
contextmenu: false,
quickbars_selection_toolbar:
"bold italic code h2 h3 quicklink blockquote",