MCPcopy Index your code
hub / github.com/ether/etherpad / setText

Method setText

src/node/db/Pad.ts:511–513  ·  view source on GitHub ↗

* 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 = '')

Source from the content-addressed store, hash-verified

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.

Callers 13

import.tsFile · 0.80
seedPadFunction · 0.80
Pad.tsFile · 0.80
messages.tsFile · 0.80
createTestPadFunction · 0.80
padLoadFilter.tsFile · 0.80
ImportHtml.tsFile · 0.80
API.tsFile · 0.80

Calls 2

spliceTextMethod · 0.95
textMethod · 0.95

Tested by

no test coverage detected