* 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)
| 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 |
no test coverage detected