MCPcopy
hub / github.com/tinymce/tinymce / getPos

Function getPos

modules/tinymce/src/core/main/ts/api/dom/DOMUtils.ts:448–448  ·  view source on GitHub ↗
(elm: string | Element | null, rootElm?: Node)

Source from the content-addressed store, hash-verified

446 };
447
448 const getPos = (elm: string | Element | null, rootElm?: Node) => Position.getPos(doc.body, get(elm), rootElm);
449
450 const setStyle = (elm: string | Element | Element[], name: string, value: string | number | null) => {
451 run(elm, (e) => {

Callers 1

getRectFunction · 0.70

Calls 1

getFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…