chore: 修改markdown预览模式
This commit is contained in:
parent
6cf618dbf7
commit
e3d176e245
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user