(oldBlock, newBlock)
| 62 | } |
| 63 | |
| 64 | replaceBlock(oldBlock, newBlock) { |
| 65 | const index = this.blockList.indexOf(oldBlock) |
| 66 | if (index === -1) { |
| 67 | return this |
| 68 | } |
| 69 | return new this.constructor(this.blockList.replaceObjectAtIndex(newBlock, index)) |
| 70 | } |
| 71 | |
| 72 | insertDocumentAtRange(document, range) { |
| 73 | const { blockList } = document |
no test coverage detected