The API model used to edit text.
Removes the Element itself.
var run = editor.getAPIModelById('id'); run.remove(); |
Replaces the element itself with the HTML String passed as an argument.
var run = editor.getAPIModelById('id'); run.replace('<span>TextRun replaced</span>'); |
Set the text string value passed as an argument to the text run.
var run = editor.getAPIModelById('id'); run.setText('This is what goes into the text run.'); |