From 8574d2b143dfec08b7db85f9fcf722ff46070e43 Mon Sep 17 00:00:00 2001 From: maphew Date: Sun, 17 Nov 2024 20:38:27 -0700 Subject: [PATCH] Fix save) triggers 'not allowed to be changed' "500 PUT options. Option 'allowedHtmlTags' is not allowed to be changed" Note: the "allowed to change" list is set on startup. When a new option is added Trilium must be restarted. --- src/routes/api/options.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/api/options.ts b/src/routes/api/options.ts index ecfe2dcbb..4e8645793 100644 --- a/src/routes/api/options.ts +++ b/src/routes/api/options.ts @@ -66,7 +66,8 @@ const ALLOWED_OPTIONS = new Set([ 'editedNotesOpenInRibbon', 'locale', 'firstDayOfWeek', - 'textNoteEditorType' + 'textNoteEditorType', + 'allowedHtmlTags', // Allow configuring HTML import tags ]); function getOptions() {