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

Function transformWithEditor

packages/serializer/src/text.ts:53–62  ·  view source on GitHub ↗
(editor: Editor, node: Node = editor)

Source from the content-addressed store, hash-verified

51 },
52
53 transformWithEditor(editor: Editor, node: Node = editor): string {
54 const TextSerializerEditor = Object.assign({}, TextSerializer)
55 const transforms = TEXT_SERIALIZER_TRANSFORMS.get(editor) ?? []
56
57 for (const { transform, options } of transforms) {
58 TextSerializerEditor.with(transform, options)
59 }
60
61 return TextSerializerEditor.transform(node)
62 },
63}

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…