react-quill icon indicating copy to clipboard operation
react-quill copied to clipboard

Html is corrupted when rendered in quill editor

Open jayanthbondi opened this issue 4 years ago • 1 comments

When I set some html as initialValue to quill, why is it changing the original format?

jayanthbondi avatar Oct 22 '20 18:10 jayanthbondi

I am running into this as well. It triggers an onChange from the API and alters it. I would really like to keep this from happening as there is bugs with what it is trying to do. For instance, If I have a string with consecutive html tags, it removes spaces between them.

So if initial value is "Hey there" It changes it so there is no space between Hey and there. It does something similar when trying to be smart about consolidating the value. if initial value is "Hey there George" it combines them into one tag but removes all the spaces. so result is "HeythereGeorge" This is going to cause me to move away from this editor unfortunately.. unless I can find a way to keep this from happening. it only happens on initial Value loading.

ryan-honor-ed avatar May 12 '22 00:05 ryan-honor-ed