cherry-markdown icon indicating copy to clipboard operation
cherry-markdown copied to clipboard

vue3中设置了id 还是自己去创建了一个div

Open libaze opened this issue 1 year ago • 2 comments

Prerequisites

Version

v1.0.0

Reproduction Link

No response

Describe the Bug

image 我自己设定了,为什么他还会自己在最外层设定

System Information

vue3

Contributing

None

libaze avatar Nov 02 '24 05:11 libaze

需要确认在实例化cherry时,那个dom是否已经存在。。

sunsonliu avatar Nov 04 '24 06:11 sunsonliu

遇到同样的问题,发放onMounted后正常了

onMounted(() => {
  new Cherry({
    id: 'markdown-container',
    value: '# welcome to cherry editor!',
  });
});

fulsun avatar Jun 10 '25 17:06 fulsun