Skip to content

Commit

Permalink
feat(markdown): expose download, edit [khcp-11536] (#71)
Browse files Browse the repository at this point in the history
feat(markdown): expose download, edit [khcp-11536]
  • Loading branch information
aanchalm01 authored May 21, 2024
1 parent 2f5d79c commit 099f380
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/MarkdownUi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,9 @@ onUnmounted(() => {
destroySyncScroll()
})
// Exposing for Integrated Markdown Editor - Milestone 2 (Creating a New Document) work. The download and edit will be managed by the host app.
defineExpose({ download, edit })
// Calculate the max height of the `.markdown-panes` when fullscreen is true. 100vh, minus the toolbar height, minus 10px padding.
const fullscreenMarkdownPanesHeight = computed((): string => `calc(100vh - ${TOOLBAR_HEIGHT} - ${KUI_SPACE_60})`)
const markdownPanesMaxHeight = computed((): string => `${props.maxHeight}px`)
Expand Down

0 comments on commit 099f380

Please sign in to comment.