Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks done
Panjun-520 opened this issue Mar 1, 2024 · 0 comments
Open
4 tasks done

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

Panjun-520 opened this issue Mar 1, 2024 · 0 comments

Comments

@Panjun-520
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant