(range)
| 344 | } |
| 345 | |
| 346 | removeLastTerminalAttributeAtRange(range) { |
| 347 | let { blockList } = this |
| 348 | this.eachBlockAtRange(range, function(block, textRange, index) { |
| 349 | const lastAttributeName = block.getLastAttribute() |
| 350 | if (!lastAttributeName) { |
| 351 | return |
| 352 | } |
| 353 | if (!getBlockConfig(lastAttributeName).terminal) { |
| 354 | return |
| 355 | } |
| 356 | blockList = blockList.editObjectAtIndex(index, () => block.removeAttribute(lastAttributeName)) |
| 357 | }) |
| 358 | return new this.constructor(blockList) |
| 359 | } |
| 360 | |
| 361 | removeBlockAttributesAtRange(range) { |
| 362 | let { blockList } = this |
no test coverage detected