Skip to content

Commit

Permalink
fix(editorApi): Emit outline toggleing from MarkdownContentEditor
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- committed Oct 10, 2023
1 parent 5f5cb98 commit 99ef6a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Editor/MarkdownContentEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@

<template>
<Wrapper :content-loaded="true"
:show-outline-outside="showOutlineOutside">
:show-outline-outside="showOutlineOutside"
@outline-toggled="outlineToggled">
<MainContainer>
<MenuBar v-if="!readOnly" :autohide="false" />
<ReadonlyBar v-else />
Expand Down Expand Up @@ -138,6 +139,11 @@ export default {
updateContent() {
this.$editor.commands.setContent(this.htmlContent, true)
},

outlineToggled(visible) {
this.$emit('outline-toggled', visible)
this.$parent.$emit('outline-toggled', visible)
},
},
}
</script>
Expand Down

0 comments on commit 99ef6a1

Please sign in to comment.