Implement diffToChanges() – a function which converts diff() output into a applicable deltas #4881
Labels
package:utils
type:feature
This issue reports a feature request (an idea for a new functionality or a missing option).
Milestone
diff()
outputs results like:Often, you may need to then generate a set of deltas which transform the left text (current) to the right one (future) or the opposite. However, the output from
diffToChanges()
should be generic enough (if possible), so it can be used with JS strings or DOM text nodes in a similar way if needed.First feature which requires this functionality is ckeditor/ckeditor5-typing. I'm not sure there will be more soon, but that's enough.
The text was updated successfully, but these errors were encountered: