(attributes, attachment)
| 265 | } |
| 266 | |
| 267 | updateAttributesForAttachment(attributes, attachment) { |
| 268 | const range = this.getRangeOfAttachment(attachment) |
| 269 | const [ startPosition ] = Array.from(range) |
| 270 | const { index } = this.locationFromPosition(startPosition) |
| 271 | const text = this.getTextAtIndex(index) |
| 272 | |
| 273 | return new this.constructor( |
| 274 | this.blockList.editObjectAtIndex(index, (block) => |
| 275 | block.copyWithText(text.updateAttributesForAttachment(attributes, attachment)) |
| 276 | ) |
| 277 | ) |
| 278 | } |
| 279 | |
| 280 | removeAttributeForAttachment(attribute, attachment) { |
| 281 | const range = this.getRangeOfAttachment(attachment) |
nothing calls this directly
no test coverage detected