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