(range, options = {})
| 326 | } |
| 327 | |
| 328 | removeLastListAttributeAtRange(range, options = {}) { |
| 329 | let { blockList } = this |
| 330 | this.eachBlockAtRange(range, function(block, textRange, index) { |
| 331 | const lastAttributeName = block.getLastAttribute() |
| 332 | if (!lastAttributeName) { |
| 333 | return |
| 334 | } |
| 335 | if (!getBlockConfig(lastAttributeName).listAttribute) { |
| 336 | return |
| 337 | } |
| 338 | if (lastAttributeName === options.exceptAttributeName) { |
| 339 | return |
| 340 | } |
| 341 | blockList = blockList.editObjectAtIndex(index, () => block.removeAttribute(lastAttributeName)) |
| 342 | }) |
| 343 | return new this.constructor(blockList) |
| 344 | } |
| 345 | |
| 346 | removeLastTerminalAttributeAtRange(range) { |
| 347 | let { blockList } = this |
no test coverage detected