MCPcopy
hub / github.com/tinymce/tinymce / getOuterHTML

Function getOuterHTML

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

Source from the content-addressed store, hash-verified

845 const uniqueId = (prefix?: string) => (!prefix ? 'mce_' : prefix) + (counter++);
846
847 const getOuterHTML = (elm: string | Node): string => {
848 const $elm = _get(elm);
849
850 if (Type.isNonNullable($elm)) {
851 return NodeType.isElement($elm.dom) ? $elm.dom.outerHTML : Html.getOuter($elm);
852 } else {
853 return '';
854 }
855 };
856
857 const setOuterHTML = (elm: string | Node | Node[], html: string) => {
858 run(elm, ($elm) => {

Callers

nothing calls this directly

Calls 1

_getFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…