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

Function props

packages/plugins/indent/src/index.ts:12–29  ·  view source on GitHub ↗
(key, node, path)

Source from the content-addressed store, hash-verified

10 wrapList(editor, entry, {
11 ...options,
12 props(key, node, path) {
13 const p = props ? props(key, node, path) : {}
14 if (IndentEditor.isIndentBlock(editor, node)) {
15 const { lineIndent = 0, textIndent = 0 } = node
16 Transforms.setNodes<Indent>(
17 editor,
18 { lineIndent: 0, textIndent: 0 },
19 {
20 at: path,
21 },
22 )
23 return {
24 ...p,
25 lineIndent: lineIndent + textIndent,
26 }
27 }
28 return p
29 },
30 })
31}
32

Callers 2

wrapListFunction · 0.50
list.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…