* Insert `text` at `index`. * * @param {Number} index * @param {String} string * @return {Text}
(index, string)
| 259 | */ |
| 260 | |
| 261 | insertText(index, string) { |
| 262 | const { text } = this |
| 263 | const next = text.slice(0, index) + string + text.slice(index) |
| 264 | const node = this.set('text', next) |
| 265 | return node |
| 266 | } |
| 267 | |
| 268 | /** |
| 269 | * Remove a `mark`. |
no outgoing calls
no test coverage detected