MCPcopy Create free account
hub / github.com/editablejs/editable / transformWithEditor

Function transformWithEditor

packages/deserializer/src/html.ts:75–84  ·  view source on GitHub ↗
(editor: Editor, node: DOMNode, options: HTMLDeserializerOptions = {})

Source from the content-addressed store, hash-verified

73 },
74
75 transformWithEditor(editor: Editor, node: DOMNode, options: HTMLDeserializerOptions = {}) {
76 const HTMLDeserializerEditor = Object.assign({}, HTMLDeserializer)
77 const transforms = HTML_DESERIALIZER_TRANSFORMS.get(editor) ?? []
78
79 for (const { transform, options } of transforms) {
80 HTMLDeserializerEditor.with(transform, options)
81 }
82
83 return HTMLDeserializerEditor.transform(node, options)
84 },
85}

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…