slab / delta

Simple and expressive JSON format for describing rich-text content and their changes
https://quilljs.com/docs/delta
BSD 3-Clause "New" or "Revised" License
914 stars 130 forks source link

Fix bug in diff() method while formatLine() called #39

Closed cyrilzhao closed 5 years ago

cyrilzhao commented 5 years ago

I found that 'insert' property is required in diff(). But there is no 'insert' property in the delta object which returned by calling formatLine() method and only 'retain' property exists.

jhchen commented 5 years ago

Hey @cyrilzhao can you please provide a test or example deltas. It sounds like things are working as expected by the methods may be misused or misunderstood.