| 腾龙公司游戏APP下载链接 【xs10159.com】 -// https://quilljs.com/playground/snowconst Delta = Quill.imports.delta;let base = new Delta();const op1 = new Delta().insert(" ", { src: "blob" });const invert1 = op1.invert(base); // { delete: 1 }base = base.compose(op1); // { insert: " ", attributes: { src: "blob" } }const undoable = new Delta().retain(1, { src: "http" });base = base.compose(undoable); // { insert: " ", attributes: { src: "http" } }base = base.compose(invert1); // []// https://quilljs.com/playground/snowconst Delta = Quill.imports.delta;let base = new Delta();const op1 = new Delta().insert(" ", { src: "blob" });let invert1 = op1.invert(base); // { delete: 1 }base = base.compose(op1); // { insert: " ", attributes: { src: "blob" } }const undoable = new Delta().insert("1").retain(1, { src: "http" });base = base.compose(undoable); // { insert:"1" }, { insert: " ", attributes: { src: "http" } }invert1 = undoable.transform(invert1); // { retain: 1 }, { delete: 1 }base = base.compose(invert1); // { insert: "1" } |