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

Function transformWithEditor

packages/serializer/src/html.ts:117–128  ·  view source on GitHub ↗
(editor: Editor, node: Node = editor)

Source from the content-addressed store, hash-verified

115 },
116
117 transformWithEditor(editor: Editor, node: Node = editor) {
118 const HTMLSerializerEditor = Object.assign({}, HTMLSerializer)
119 const transforms = HTML_SERIALIZER_TRANSFORMS.get(editor) ?? []
120
121 HTMLSerializerEditor.with(withEditorHTMLSerializerTransform, { editor })
122
123 for (const { transform, options } of transforms) {
124 HTMLSerializerEditor.with(transform, options)
125 }
126
127 return HTMLSerializerEditor.transform(node)
128 },
129}

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…