MCPcopy
hub / github.com/tinymce/tinymce / createEditor

Function createEditor

modules/tinymce/src/core/main/ts/api/EditorManager.ts:428–440  ·  view source on GitHub ↗
(id: string, options: RawEditorOptions, targetElm: HTMLElement)

Source from the content-addressed store, hash-verified

426 let targets: HTMLElement[];
427
428 const createEditor = (id: string, options: RawEditorOptions, targetElm: HTMLElement) => {
429 const editor: Editor = new Editor(id, options, self);
430 editors.push(editor);
431
432 editor.on('init', () => {
433 if (++initCount === targets.length) {
434 provideResults(editors);
435 }
436 });
437
438 editor.targetElm = editor.targetElm || targetElm;
439 editor.render();
440 };
441
442 DOM.unbind(window, 'ready', initEditors);
443 execCallback('onpageload');

Callers 1

initEditorsFunction · 0.70

Calls 4

renderMethod · 0.95
provideResultsFunction · 0.85
onMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…