Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何在编辑器外部手动设置md.value.previewtoggle #885

Open
Z-Victory opened this issue Nov 8, 2023 · 1 comment
Open

如何在编辑器外部手动设置md.value.previewtoggle #885

Z-Victory opened this issue Nov 8, 2023 · 1 comment

Comments

@Z-Victory
Copy link

No description provided.

@584sentiment
Copy link

可以通过设置default-open属性来切换编辑器状态。

<mavon-editor default-open="status"></mavon-editor>

<script setup lang="ts">
const status = ref('edit')
</script>

然后可以通过watch status的值

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants