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

Method insertContent

modules/tinymce/src/core/main/ts/api/Editor.ts:894–900  ·  view source on GitHub ↗

* Inserts content at caret position. * * @method insertContent * @param {String} content Content to insert. * @param {Object} args Optional args to pass to insert call.

(content: string, args?: any)

Source from the content-addressed store, hash-verified

892 * @param {Object} args Optional args to pass to insert call.
893 */
894 public insertContent(content: string, args?: any): void {
895 if (args) {
896 content = extend({ content }, args);
897 }
898
899 this.execCommand('mceInsertContent', false, content);
900 }
901
902 /**
903 * Resets the editors content, undo/redo history and dirty state. If `initialContent` isn't specified, then

Calls 2

execCommandMethod · 0.95
extendFunction · 0.85

Tested by

no test coverage detected