ACV Markdown Editor
Markdown editor component allows you to edit and preview markdown content. We use v-model
binding variable to bind the markdown content.
Under the hood, it uses md-editor-v3 component.
Basic usage
Source code
vue
<script setup>
import AcvMarkdownEditor from '@/components/markdown-editor/markdownEditor.vue';
import { ref } from 'vue';
const value = ref('test');
</script>
<template>
<AcvMarkdownEditor v-model="value" />
</template>
Props
Prop name | Description | Type | Values | Default |
---|---|---|---|---|
modelValue | string | - | ||
height | Height of the MarkdownEditor | number | string | - |
Events
Event name | Properties | Description |
---|---|---|
close | eventName string - The name of the eventvisible string - The visibility state of the component | Triggered when the component is closed |
Slots
Name | Description | Bindings |
---|---|---|
default | The default slot content | |
description | The description slot content |