diff --git a/notes-webapp/src/main/webapp/WEB-INF/conf/wiki/ckeditor/config.js b/notes-webapp/src/main/webapp/WEB-INF/conf/wiki/ckeditor/config.js index 93950d2fd..0e12286e3 100644 --- a/notes-webapp/src/main/webapp/WEB-INF/conf/wiki/ckeditor/config.js +++ b/notes-webapp/src/main/webapp/WEB-INF/conf/wiki/ckeditor/config.js @@ -29,6 +29,7 @@ CKEDITOR.editorConfig = function (config) { 'Table', 'EmbedSemantic', 'CodeSnippet', + 'attachFile', 'InsertOptions' ]; if (webPageNote) { diff --git a/notes-webapp/src/main/webapp/vue-app/notes-rich-editor/components/NoteFullRichEditor.vue b/notes-webapp/src/main/webapp/vue-app/notes-rich-editor/components/NoteFullRichEditor.vue index 937de638f..3762cb5c7 100644 --- a/notes-webapp/src/main/webapp/vue-app/notes-rich-editor/components/NoteFullRichEditor.vue +++ b/notes-webapp/src/main/webapp/vue-app/notes-rich-editor/components/NoteFullRichEditor.vue @@ -251,13 +251,12 @@ export default { }, computed: { extensionParams() { - console.log(this.note); return { spaceId: this.getURLQueryParam('spaceId'), - entityId: this.note.draftPage && this.note?.id || this.note.latestVersionId, + entityId: this.note.id && this.note.id !== 0 && this.note?.draftPage ? this.note.id : this.note.latestVersionId, entityType: this.note.draftPage && 'WIKI_DRAFT_PAGES' || 'WIKI_PAGE_VERSIONS', lang: this.note.lang, - isEmptyNoteTranslation: this.note.lang != null && !this.note?.title && !this.note?.content + isEmptyNoteTranslation: (!!this.note.lang || this.note.lang != null) && !this.note?.title && !this.note?.content }; }, hasFeaturedImage() {