(elm: string | Node)
| 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) => { |
nothing calls this directly
no test coverage detected
searching dependent graphs…