Skip to content

Build your personal knowledge base with Trilium Notes

server: Set up editor type option

Elian Doran7a70fc14b373
diff --git a/src/routes/api/options.ts b/src/routes/api/options.ts
index c8f99fd775..b918bdc198 100644
--- a/src/routes/api/options.ts
+++ b/src/routes/api/options.ts
@@ -65,7 +65,8 @@ const ALLOWED_OPTIONS = new Set([
'promotedAttributesOpenInRibbon',
'editedNotesOpenInRibbon',
'locale',
- 'firstDayOfWeek'
+ 'firstDayOfWeek',
+ 'textNoteEditorType'
]);
function getOptions() {
diff --git a/src/services/options_init.ts b/src/services/options_init.ts
index dfac812f6e..1dc7602d24 100644
--- a/src/services/options_init.ts
+++ b/src/services/options_init.ts
@@ -131,7 +131,10 @@ const defaultOptions: DefaultOption[] = [
return "default:stackoverflow-dark";
}
}, isSynced: false },
- { name: "codeBlockWordWrap", value: "false", isSynced: true }
+ { name: "codeBlockWordWrap", value: "false", isSynced: true },
+
+ // Text note configuration
+ { name: "textNoteEditorType", value: "ckeditor-balloon", isSynced: true }
];
/**