JiHong88 / suneditor

Pure javascript based WYSIWYG html editor, with no dependencies.
http://suneditor.com
MIT License
1.66k stars 307 forks source link

多个富文本框使用报错 #1393

Closed yinianxinghe closed 2 months ago

yinianxinghe commented 2 months ago

Describe the bug 我对sunEditor封装了一个vue的组件,但是在el-tabs中使用时,切换tab页提示Error: [SUNEDITOR.create.fail] The ID of the suneditor you are trying to create already exists (ID:"suneditor_sunEditorCN"),我在文档中也没有找到富文本框的销毁事件,请问该富文本框是没有销毁事件吗,如果没有,这个问题应该如何解决呢?

以下是我的sunEditor组件 `

`

To Reproduce `

      <el-tab-pane name="2" lazy>
               <SunEditor domId="`sunEditor2`">
      </el-tab-pane>

` 切换tab的时候就会在控制台报错Error: [SUNEDITOR.create.fail] The ID of the suneditor you are trying to create already exists

(ID:"suneditor_sunEditorCN"),我希望能够提供一个销毁事件供我销毁该组件