MCPcopy
hub / github.com/tinymce/tinymce / get

Function get

modules/tinymce/src/core/main/ts/api/dom/DOMUtils.ts:372–375  ·  view source on GitHub ↗
(elm: string | T)

Source from the content-addressed store, hash-verified

370 };
371
372 const get = <T extends Node | null | undefined>(elm: string | T): HTMLElement | T | null =>
373 elm && doc && Type.isString(elm)
374 ? doc.getElementById(elm)
375 : elm as T;
376
377 const _get = <T extends Node>(elm: string | T | null | undefined): SugarElement<T | HTMLElement> | null => {
378 const value = get(elm);

Callers 10

_getFunction · 0.70
getAttribsFunction · 0.70
getPosFunction · 0.70
getStyleFunction · 0.70
getSizeFunction · 0.70
getRectFunction · 0.70
getParentsFunction · 0.70
selectFunction · 0.70
runFunction · 0.70
insertAfterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected