chore: 修改markdown预览模式

This commit is contained in:
dap 2024-10-19 10:25:04 +08:00
parent 6cf618dbf7
commit e3d176e245

View File

@ -53,6 +53,7 @@ const content = defineModel('value', {
onMounted(() => {
vditorInstance.value = new Vditor(vditorRef.value!, {
mode: 'wysiwyg',
value: content.value,
height: props.height,
lang: locale.value.replace('-', '_') as any,
@ -87,7 +88,7 @@ onBeforeUnmount(() => {
</template>
<style>
.vditor-ir pre.vditor-reset[contenteditable='false'] {
.vditor-wysiwyg pre.vditor-reset[contenteditable='false'] {
cursor: unset;
opacity: 1;
}