(blockAttributes = [])
| 53 | } |
| 54 | |
| 55 | copyWithBaseBlockAttributes(blockAttributes = []) { |
| 56 | const blocks = this.getBlocks().map((block) => { |
| 57 | const attributes = blockAttributes.concat(block.getAttributes()) |
| 58 | return block.copyWithAttributes(attributes) |
| 59 | }) |
| 60 | |
| 61 | return new this.constructor(blocks) |
| 62 | } |
| 63 | |
| 64 | replaceBlock(oldBlock, newBlock) { |
| 65 | const index = this.blockList.indexOf(oldBlock) |
no test coverage detected