MCPcopy
hub / github.com/udecode/plate / createNestedEditor

Function createNestedEditor

packages/slate/src/interfaces/node.spec.tsx:4–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { NodeApi } from './node';
3
4const createNestedEditor = () =>
5 createEditor({
6 children: [
7 { type: 'p', children: [{ text: 'one' }, { text: 'two' }] },
8 {
9 type: 'blockquote',
10 children: [{ type: 'p', children: [{ text: 'three' }] }],
11 },
12 ] as any,
13 });
14
15const mapEntries = (entries: Iterable<[any, number[]]>) =>
16 Array.from(entries).map(([node, path]) => [NodeApi.string(node), path]);

Callers 1

node.spec.tsxFile · 0.85

Calls 1

createEditorFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…