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

Method appendText

src/node/db/Pad.ts:522–524  ·  view source on GitHub ↗

* Appends text to the pad. * * @param {string} newText - Text to insert just BEFORE the pad's existing terminating newline. * @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

520 * applicable.
521 */
522 async appendText(newText:string, authorId = '') {
523 await this.spliceText(this.text().length - 1, 0, newText, authorId);
524 }
525
526 /**
527 * Adds a chat message to the pad, including saving it to the database.

Callers 6

makeContentCollectorFunction · 0.80
compactPad.tsFile · 0.80
addRevsFunction · 0.80
restoreRevision.tsFile · 0.80
API.tsFile · 0.80

Calls 2

spliceTextMethod · 0.95
textMethod · 0.95

Tested by

no test coverage detected