From 432b6476c28433cf6638d84724e0cb808ecabc2b Mon Sep 17 00:00:00 2001 From: Coulson Date: Fri, 7 Jun 2024 14:18:50 -0400 Subject: [PATCH] fix advanced editor not saving correctly --- src/components/editor.vue | 2 +- src/components/helpers/custom-editor.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/editor.vue b/src/components/editor.vue index bdadf0d7a..1405742a2 100644 --- a/src/components/editor.vue +++ b/src/components/editor.vue @@ -245,9 +245,9 @@ export default class EditorV extends Vue { */ updateCustomSlide(slideConfig: Slide, save?: boolean): void { this.currentSlide = slideConfig; + this.slides[this.slideIndex] = slideConfig; // save changes emitted from advanced editor if (save) { - this.slides[this.slideIndex] = slideConfig; this.$emit('save-changes'); } } diff --git a/src/components/helpers/custom-editor.vue b/src/components/helpers/custom-editor.vue index 8c3166a12..83a1d9f3d 100644 --- a/src/components/helpers/custom-editor.vue +++ b/src/components/helpers/custom-editor.vue @@ -4,7 +4,7 @@ v-model="updatedConfig" lang="en" :mode="'text'" - :show-btns="true" + :show-btns="false" :expandedOnStart="true" @json-change=" (json: any) => {