quill icon indicating copy to clipboard operation
quill copied to clipboard

Unable to insert HTML with dangerouslyPasteHTML

Open NiveshShastri opened this issue 6 years ago • 2 comments
trafficstars

Here is the sample HTML code that I want to insert using dangerouslyPasteHTML but editor showing undefined while adding HTML.

var selection = quill.getSelection(true); quill.clipboard.dangerouslyPasteHTML(selection.index, '<span class="mention" data-name="@Lakshya Singh" data-type="ticketing/agent" data-id="20"><span contenteditable="false" style="color:blue">@Lakshya Singh</span></span>');

Without the class, HTML is printed but with class, editor showing undefined

NiveshShastri avatar Sep 24 '19 06:09 NiveshShastri

I have the same problem, please solve this error as soon as possible

LuisJosueSantanaPerez avatar Oct 06 '20 18:10 LuisJosueSantanaPerez

I have the same problem

FelipeRomao avatar May 27 '22 12:05 FelipeRomao

Quill 2.0 has been released (announcement post) with many changes and fixes. If this is still an issue please create a new issue after reviewing our updated Contributing guide :pray:

quill-bot avatar Apr 17 '24 11:04 quill-bot