Skip to content

dangerouslyPasteHTML插入元素后输入出现问题 #491

@Panjun-520

Description

@Panjun-520

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions