dangerouslyPasteHTML插入元素后输入出现问题
Author: Panjun-520Created Mar 1, 2024Updated Mar 1, 2024
Describe the bug
用 this.$refs.myQuillEditor.quill.clipboard.dangerouslyPasteHTML(range || 0, <b style="color:blue;background:#ccc;cursor: pointer;">创建标签</b>)
这个api来向编辑器插入自定义元素后,再向编辑器输入内容,输入的内容在插入的自定义元素里不在p标签里
作者可以试一下,或者有其他的api可以解决吗
Reproduction
~~
System Info
~~Used Package Manager
npm
Validations
- Read the the documentation in detail.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Source: surmon-china/vue-quill-editor