Hi All,
I'm starting to use Quill and I'm really impressive by the simplicity of integration
Do you know if it exist a solution to render the difference between two versions of the same document ?
For example between the published document and a draft version !
Thanks a lot
This is not an available feature. I'm not sure it makes sense to add to the core library but feel free to make a case for it.
You can use the diff() function provided in the Delta library.
For example, here's a quick pen that uses diff() and compose():
https://codepen.io/percipient24/pen/eEBOjG
@Percipient24 Thanks lot for your smart solution.
Hi, thanks a lot for the diff()/compose() example code. I just get one more question. Do anyone know how to handle the text with format change instead of insertion and deletion? The example code can not show any differences if text format changed from bold to normal or from Heading to normal etc... I tried to implement some functions, but none of them works well. Are there any existing packages which handle such diff easily? Thanks a lot.
Most helpful comment
For example, here's a quick pen that uses diff() and compose():
https://codepen.io/percipient24/pen/eEBOjG