-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
When using data from quill 1.6 in 2.0 bullet points disappear. #4103
Comments
The HTML structure has changed in v2 but the best practices is to pass Delta values between v1 and v2 (and also for the same version editors): quillEditor.value.setContents(v1Editor.getContents()) |
A workaround seems to be to use Note that setting HTML without sanitization is not a security best practice. However, quill will update the |
Another possible work-around (I am not sure if this is the intended way) if you have the data in html format would be to register a legacy list format which uses
I must admit that I've tried to transform the list to the new format but I am not sure on how to approach this. |
This not only happens in Quill 1.6, this issue is still present in Quill The My "stupid" fix for now is:
|
@luin do we have any update regarding this issue? :) |
Ha. And you call that "WYSIWYG" :D |
In this image I've got the text in Strapi which is quill 1.6, here you can see I've added the lists.
Then here we have it being loaded in our front-end which is 2.0.0-rc.2
As you can see, it breaks the ordered list, and straight up removes the unordered list. This is a problem because we have a lot of data with the 1.6 editor that now needs to be used by the 2.0 editor. We can loose data this way.
Here is the code we use to read it in, in the front end.
The text was updated successfully, but these errors were encountered: