From 02a695c0f738972b178c07ddae313c3ac97d9516 Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 25 Jan 2023 12:13:49 +0100 Subject: [PATCH] Always open new pages and template pages in edit mode Signed-off-by: Jonas --- src/components/Page.vue | 3 ++- src/components/Page/TextEditor.vue | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Page.vue b/src/components/Page.vue index 051c880d2f..a535211c60 100644 --- a/src/components/Page.vue +++ b/src/components/Page.vue @@ -267,7 +267,8 @@ export default { }, initEditMode() { - this.editMode = !!this.currentCollective.pageMode + // Open in edit mode when pageMode is set, for template pages and for new pages + this.editMode = !!this.currentCollective.pageMode || this.isTemplatePage || !!this.loading('newPage') }, startEdit() { diff --git a/src/components/Page/TextEditor.vue b/src/components/Page/TextEditor.vue index 31537bb13e..f66990fbb9 100644 --- a/src/components/Page/TextEditor.vue +++ b/src/components/Page/TextEditor.vue @@ -218,7 +218,6 @@ export default { async getPageContent() { this.pageContent = await this.fetchPageContent(this.currentPageDavUrl) if (!this.pageContent) { - console.debug('emit start-edit in TextEditor.vue') this.$emit('start-edit') } },