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

Function cloneAText

src/static/js/Changeset.ts:1071–1077  ·  view source on GitHub ↗
(atext: AText)

Source from the content-addressed store, hash-verified

1069 * @returns {AText}
1070 */
1071export const cloneAText = (atext: AText): AText => {
1072 if (!atext) error('atext is null');
1073 return {
1074 text: atext.text,
1075 attribs: atext.attribs,
1076 };
1077};
1078
1079/**
1080 * Copies a AText structure from atext1 to atext2.

Callers 4

importATextFunction · 0.90
makeChangesetTrackerFunction · 0.90
sanitiseImportedRecordsFunction · 0.90
handleClientReadyFunction · 0.90

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected