We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The delta that's generated looks like:
{"ops":[{"retain":710},{"insert":" yesterday, and she says—”\n“The clinic?","attributes":{"prediction":"prediction"}},{"delete":28}]}
My code is:
const delta = new Delta() .retain(documentData?.prediction?.currentPosition) .delete(previousPredictionText?.length || 0) .insert(predictionText, { prediction: 'prediction' }) console.log('delta', JSON.stringify(delta)) quillEditor.updateContents(delta)
It looks like I should first retain, then delete, then insert, but the generated delta seems to do it in a different order. What am I doing wrong?
retain
delete
insert
delta
Cross linked at https://stackoverflow.com/questions/63430548/why-does-a-qulljs-delta-appear-out-of-order if anyone wants magic internet points
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The delta that's generated looks like:
My code is:
It looks like I should first
retain
, thendelete
, theninsert
, but the generateddelta
seems to do it in a different order. What am I doing wrong?Cross linked at https://stackoverflow.com/questions/63430548/why-does-a-qulljs-delta-appear-out-of-order if anyone wants magic internet points
The text was updated successfully, but these errors were encountered: