* Replaces the pad's text with new text. * * @param {string} newText - The pad's new text. If this string does not end with a newline, one * will be automatically appended. * @param {string} [authorId] - The author ID of the user that initiated the change, if * applicable.
(newText: string, authorId = '')
| 509 | * applicable. |
| 510 | */ |
| 511 | async setText(newText: string, authorId = '') { |
| 512 | await this.spliceText(0, this.text().length, newText, authorId); |
| 513 | } |
| 514 | |
| 515 | /** |
| 516 | * Appends text to the pad. |
no test coverage detected