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

Method execCommand

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

* Executes a registered command on the current instance. A list of available commands can be found in * the tinymce command identifiers documentation. * * @method execCommand * @param {String} cmd Command name to execute, for example mceLink or Bold. * @param {Boolean} ui Specifies if

(cmd: string, ui?: boolean, value?: any, args?: ExecCommandArgs)

Source from the content-addressed store, hash-verified

615 * @return {Boolean} true or false if the command was supported or not.
616 */
617 public execCommand(cmd: string, ui?: boolean, value?: any, args?: ExecCommandArgs): boolean {
618 return this.editorCommands.execCommand(cmd, ui, value, args);
619 }
620
621 /**
622 * Returns a command specific state, for example if bold is enabled or not.

Callers 2

focusMethod · 0.95
insertContentMethod · 0.95

Calls 1

execCommandMethod · 0.65

Tested by

no test coverage detected