Quill: Way to render diff between two document versions ?

Created on 22 Nov 2016  路  5Comments  路  Source: quilljs/quill

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

Most helpful comment

For example, here's a quick pen that uses diff() and compose():
https://codepen.io/percipient24/pen/eEBOjG

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kivylius picture Kivylius  路  3Comments

eamodio picture eamodio  路  3Comments

Yves-K picture Yves-K  路  3Comments

Softvision-MariusComan picture Softvision-MariusComan  路  3Comments

lastmjs picture lastmjs  路  3Comments