(range)
| 289 | } |
| 290 | |
| 291 | insertBlockBreakAtRange(range) { |
| 292 | let blocks |
| 293 | range = normalizeRange(range) |
| 294 | const [ startPosition ] = range |
| 295 | const { offset } = this.locationFromPosition(startPosition) |
| 296 | |
| 297 | const document = this.removeTextAtRange(range) |
| 298 | if (offset === 0) { |
| 299 | blocks = [ new Block() ] |
| 300 | } |
| 301 | return new this.constructor( |
| 302 | document.blockList.insertSplittableListAtPosition(new SplittableList(blocks), startPosition) |
| 303 | ) |
| 304 | } |
| 305 | |
| 306 | applyBlockAttributeAtRange(attributeName, value, range) { |
| 307 | const expanded = this.expandRangeToLineBreaksAndSplitBlocks(range) |
no test coverage detected