(attributeName, position)
| 575 | } |
| 576 | |
| 577 | getRangeOfCommonAttributeAtPosition(attributeName, position) { |
| 578 | const { index, offset } = this.locationFromPosition(position) |
| 579 | const text = this.getTextAtIndex(index) |
| 580 | const [ startOffset, endOffset ] = Array.from(text.getExpandedRangeForAttributeAtOffset(attributeName, offset)) |
| 581 | |
| 582 | const start = this.positionFromLocation({ index, offset: startOffset }) |
| 583 | const end = this.positionFromLocation({ index, offset: endOffset }) |
| 584 | return normalizeRange([ start, end ]) |
| 585 | } |
| 586 | |
| 587 | getBaseBlockAttributes() { |
| 588 | let baseBlockAttributes = this.getBlockAtIndex(0).getAttributes() |
no test coverage detected