From 7775376b33cae94829d20af6c5055ac4faae5db1 Mon Sep 17 00:00:00 2001 From: azivner Date: Fri, 30 Nov 2018 11:37:33 +0100 Subject: [PATCH] disable "cut to note" feature because of issues with CKEditor --- src/public/javascripts/services/tree.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/public/javascripts/services/tree.js b/src/public/javascripts/services/tree.js index b8a76ae0e..c7004e0f5 100644 --- a/src/public/javascripts/services/tree.js +++ b/src/public/javascripts/services/tree.js @@ -500,6 +500,12 @@ async function createNote(node, parentNoteId, target, isProtected, saveSelection if (noteDetailService.getCurrentNoteType() !== 'text') { saveSelection = false; } + else { + // just disable this feature altogether - there's a problem that note containing image or table at the beginning + // of the content will be auto-selected by CKEditor and then CTRL-P with no user interaction will automatically save + // the selection - see https://github.com/ckeditor/ckeditor5/issues/1384 + saveSelection = false; + } let title, content;