MCPcopy Index your code
hub / github.com/tinymce/tinymce / setContent

Method setContent

modules/tinymce/src/core/main/ts/api/Editor.ts:860–862  ·  view source on GitHub ↗
(content: EditorContent.Content, args?: Partial<EditorContent.SetContentArgs>)

Source from the content-addressed store, hash-verified

858 */
859 public setContent(content: string | AstNode, args?: Partial<EditorContent.SetContentArgs>): void;
860 public setContent(content: EditorContent.Content, args?: Partial<EditorContent.SetContentArgs>): void {
861 EditorContent.setContent(this, content, args);
862 }
863
864 /**
865 * Gets the content from the editor instance, this will cleanup the content before it gets returned using

Calls

no outgoing calls

Tested by 1

testFunction · 0.64