I want to know how to bind quill, so I have a try. But unfortunately, I can’t directly apply the delta of quill to ytext by using ytext.appDelta(delta)
.(The following code.) But ‘ The Text-Delta is equivalent to Quills’ Delta format.’
I print the data of ytext.toDelta() when Every time I type a character, but I only got the delta of ytext all strings instead of a single modification operation.
So how to use Delta?
my code:
this.quill.on(‘text-change’, function(delta, oldDelta, source) {
if (source == ‘api’|source ==‘user’) {
ytext.applyDelta(delta)
console.log(ytext.toString())
}