mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
workaround for CKEditor bug with setting empty data
This commit is contained in:
@@ -121,7 +121,8 @@ const noteEditor = (function() {
|
||||
|
||||
noteTitleEl.val(currentNote.detail.note_title);
|
||||
|
||||
editor.setData(currentNote.detail.note_text);
|
||||
// temporary workaround for https://github.com/ckeditor/ckeditor5-enter/issues/49
|
||||
editor.setData(currentNote.detail.note_text ? currentNote.detail.note_text : "<p></p>");
|
||||
|
||||
noteChangeDisabled = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user