MCPcopy
hub / github.com/tinymce/tinymce / focus

Method focus

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

* Focuses/activates the editor. This will set this editor as the activeEditor in the tinymce collection * it will also place DOM focus inside the editor. * * @method focus * @param {Boolean} skipFocus Skip DOM focus. Just set is as the active editor.

(skipFocus?: boolean)

Source from the content-addressed store, hash-verified

402 * @param {Boolean} skipFocus Skip DOM focus. Just set is as the active editor.
403 */
404 public focus(skipFocus?: boolean): void {
405 this.execCommand('mceFocus', false, skipFocus);
406 }
407
408 /**
409 * Returns true/false if the editor has real keyboard focus.

Calls 1

execCommandMethod · 0.95

Tested by 2

InnerLevelFunction · 0.64
TabKeyingInTreeFunction · 0.64