(key, node, path)
| 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 |