When the editor has an initial value and the undo command is pressed (ctrl+z or cmd+z) the entire content is erased.
This problem occurs because it is changing the content after it is loaded.
The correct form of using the initial content is putting the content inside the quill container, in HTML.
As can be seen here: https://quilljs.com/docs/quickstart/
This code simulates this behavior, changing the innerHTML from the container before Quill is mounted and it fixes the problem
When the editor has an initial value and the undo command is pressed (ctrl+z or cmd+z) the entire content is erased.
This problem occurs because it is changing the content after it is loaded. The correct form of using the initial content is putting the content inside the quill container, in HTML. As can be seen here: https://quilljs.com/docs/quickstart/
This code simulates this behavior, changing the
innerHTML
from the container before Quill is mounted and it fixes the problem