src/edit/history.js
// Add a transform to the branch's history.
Add a transform to the branch's history.
Add a transform to the branch ' s history .
addTransform(transform, ids) {
    this.abortCompression()
    for (let i = 0; i < transform.steps.length; i++) {
      let inverted = transform.steps[i].invert(transform.docs[i], transform.maps[i])
      this.addStep(inverted, transform.maps[i], ids && ids[i])
    }
  }
addTransform ( transform , ids ) { this . abortCompression ( ) for ( let i = 0 ; i < transform . steps . length ; i ++ ) { let inverted = transform . steps [ i ] . invert ( transform . docs [ i ] , transform . maps [ i ] ) this . addStep ( inverted , transform . maps [ i ] , ids && ids [ i ] ) } }
Add a transform to the branch's history.
Add a transform to the branch ' s history .