From 099f3804e86ad6f1a112ce8e393ccb3f6cb4bbae Mon Sep 17 00:00:00 2001 From: Aanchal Mishra <87779967+aanchalm01@users.noreply.github.com> Date: Tue, 21 May 2024 13:50:13 -0400 Subject: [PATCH] feat(markdown): expose download, edit [khcp-11536] (#71) feat(markdown): expose download, edit [khcp-11536] --- src/components/MarkdownUi.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/MarkdownUi.vue b/src/components/MarkdownUi.vue index b0556d0d..e1da56f2 100644 --- a/src/components/MarkdownUi.vue +++ b/src/components/MarkdownUi.vue @@ -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`)