Skip to content

Commit

Permalink
Merge pull request #317 from RyanCoulsonCA/fix-312
Browse files Browse the repository at this point in the history
fix advanced editor not saving correctly
  • Loading branch information
dnlnashed authored Jun 18, 2024
2 parents 0be9c27 + 432b647 commit c781483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/helpers/custom-editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
v-model="updatedConfig"
lang="en"
:mode="'text'"
:show-btns="true"
:show-btns="false"
:expandedOnStart="true"
@json-change="
(json: any) => {
Expand Down

0 comments on commit c781483

Please sign in to comment.