From 900ea3e8caaa1fb6213bccc55ee2c61e0f62c2b4 Mon Sep 17 00:00:00 2001 From: Zyten Date: Fri, 15 Sep 2023 00:32:30 +0800 Subject: [PATCH] fix: save state when task-item is updated in View mode --- wiki/public/js/editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wiki/public/js/editor.js b/wiki/public/js/editor.js index c06fd7df..15c119c1 100644 --- a/wiki/public/js/editor.js +++ b/wiki/public/js/editor.js @@ -115,6 +115,8 @@ const editor = new Editor({ TaskList, TaskItem.configure({ nested: true, + //Save state when task-item is updated in View mode + onReadOnlyChecked: () => true, }), ], inputRules: [disableMarkdownShortcut("#", "#")],