📜  quill js 服务器端增量 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:52.154000             🧑  作者: Mango

代码示例1
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
};