📅  最后修改于: 2022-03-11 15:03:52.154000             🧑  作者: Mango
const Delta = require('quill-delta'); // npm install quill-delta
let serverSideDelta = {};
let deltaToAdd = ;
// Apply clientSideDelta on serverSideDelta
serverSideDelta = {
ops: new Delta(serverSideDelta.ops).compose(new Delta(deltaToAdd))).ops
};