You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not been able to find a plug and play solution for this yet. I want to use Quill as a RTE but need to display existing HTML content as is. I understand the concern and the reason for this, but there must be a wait to preserve HTML when pasted into the editor.
I also added the modules/htmlEditButton to view / edit html.
I am using basic Javascript with no framework.
An example of some existing content:
< div style="font-size: 15px; padding: 10px 0 20px 0;" > < / div >
I use the following to copy into the editor:
quill.clipboard.dangerouslyPasteHTML(content);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have not been able to find a plug and play solution for this yet. I want to use Quill as a RTE but need to display existing HTML content as is. I understand the concern and the reason for this, but there must be a wait to preserve HTML when pasted into the editor.
I also added the modules/htmlEditButton to view / edit html.
I am using basic Javascript with no framework.
An example of some existing content:
< div style="font-size: 15px; padding: 10px 0 20px 0;" > < / div >
I use the following to copy into the editor:
quill.clipboard.dangerouslyPasteHTML(content);
What I get, looks something like this:
< div > < / div >
How can I keep my HTML as is?
Beta Was this translation helpful? Give feedback.
All reactions