utils/difftochanges
@ckeditor/ckeditor5-utils/src/difftochanges
module
Filtering
Functions
-
diffToChanges( diff, output ) → Array.<Object>
Creates a set of changes which need to be applied to the input in order to transform it into the output. This function can be used with strings or arrays.
Parameters
diff : Array.<('equal' | 'insert' | 'delete')>
Result of
diff
.output : String | Array
The string or array which was passed as diff's output.
Returns
Array.<Object>
Set of changes (insert or delete) which need to be applied to the input in order to transform it into the output.
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.