* Insert Block after passed target * * @todo decide if this method is necessary * @param {Block} targetBlock — target after which Block should be inserted * @param {Block} newBlock — Block to insert
(targetBlock: Block, newBlock: Block)
| 313 | * @param {Block} newBlock — Block to insert |
| 314 | */ |
| 315 | public insertAfter(targetBlock: Block, newBlock: Block): void { |
| 316 | const index = this.blocks.indexOf(targetBlock); |
| 317 | |
| 318 | this.insert(index + 1, newBlock); |
| 319 | } |
| 320 | |
| 321 | /** |
| 322 | * Get Block by index |