MCPcopy
hub / github.com/tinymce/tinymce / select

Function select

modules/tinymce/src/core/main/ts/api/dom/DOMUtils.ts:617–620  ·  view source on GitHub ↗
(selector: string, scope?: Node | string)

Source from the content-addressed store, hash-verified

615 Type.isFunction((node as any).querySelectorAll);
616
617 const select = (selector: string, scope?: Node | string): Element[] => {
618 const elm = get(scope) ?? settings.root_element ?? doc;
619 return isParentNode(elm) ? Arr.from(elm.querySelectorAll(selector)) : [];
620 };
621
622 const run = function <R, T extends Node> (this: any, elm: RunArguments<T>, func: (node: T, i?: number) => R, scope?: any): RunResult<typeof elm, R> {
623 const context = scope ?? this;

Callers 1

pTestFormatFunction · 0.50

Calls 3

isParentNodeFunction · 0.85
fromMethod · 0.80
getFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…