MCPcopy
hub / github.com/codex-team/editor.js / find

Method find

src/components/dom.ts:152–154  ·  view source on GitHub ↗

* Selector Decorator * * Returns first match * * @param {Element} el - element we searching inside. Default - DOM Document * @param {string} selector - searching string * @returns {Element}

(el: Element | Document = document, selector: string)

Source from the content-addressed store, hash-verified

150 * @returns {Element}
151 */
152 public static find(el: Element | Document = document, selector: string): Element | null {
153 return el.querySelector(selector);
154 }
155
156 /**
157 * Get Element by Id

Callers 15

i18n.cy.tsFile · 0.80
selection.cy.tsFile · 0.80
sanitisation.cy.tsFile · 0.80
Ui.cy.tsFile · 0.80
Saver.cy.tsFile · 0.80
Renderer.cy.tsFile · 0.80
Backspace.cy.tsFile · 0.80
ArrowRight.cy.tsFile · 0.80
Tab.cy.tsFile · 0.80
Slash.cy.tsFile · 0.80
Enter.cy.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected