Skip to content

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

feat: change toolbar buttons order

thecodrr832d8d552129
diff --git a/apps/web/src/components/editor/toolbar.js b/apps/web/src/components/editor/toolbar.js
index c5cb52834..7b4e9cff0 100644
--- a/apps/web/src/components/editor/toolbar.js
+++ b/apps/web/src/components/editor/toolbar.js
@@ -89,6 +89,16 @@ function Toolbar(props) {
setIsFullscreen((s) => !s);
},
},
+ {
+ title: isFocusMode ? "Normal mode" : "Focus mode",
+ icon: isFocusMode ? Icon.NormalMode : Icon.FocusMode,
+ enabled: true,
+ hideOnMobile: true,
+ onClick: () => {
+ toggleFocusMode();
+ if (tinymce.activeEditor) tinymce.activeEditor.focus();
+ },
+ },
{
title: "Undo",
icon: Icon.Undo,
@@ -101,16 +111,6 @@ function Toolbar(props) {
enabled: redoable,
onClick: () => tinymce.activeEditor.execCommand("Redo"),
},
- {
- title: isFocusMode ? "Normal mode" : "Focus mode",
- icon: isFocusMode ? Icon.NormalMode : Icon.FocusMode,
- enabled: true,
- hideOnMobile: true,
- onClick: () => {
- toggleFocusMode();
- if (tinymce.activeEditor) tinymce.activeEditor.focus();
- },
- },
{
title: "Properties",
icon: Icon.Properties,