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 2, 2023
1 parent e102f2e commit 7d1753e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Editor/MarkdownContentEditor.vue
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 7d1753e

Please sign in to comment.