cherry-markdown
cherry-markdown copied to clipboard
vue3中设置了id 还是自己去创建了一个div
Prerequisites
-
[ ] There isn't an existing issue that reports the same bug to avoid duplicates.
-
[ ] The provided information offers a minimal reproducible example of the bug (Why create a Minimal, Reproducible Example).
-
[X] For Q&A, please open a GitHub Discussion instead.
Version
v1.0.0
Reproduction Link
No response
Describe the Bug
我自己设定了,为什么他还会自己在最外层设定
System Information
vue3
Contributing
None
需要确认在实例化cherry时,那个dom是否已经存在。。
遇到同样的问题,发放onMounted后正常了
onMounted(() => {
new Cherry({
id: 'markdown-container',
value: '# welcome to cherry editor!',
});
});