MCPcopy Index your code
hub / github.com/udecode/plate / createEditor

Function createEditor

packages/code-block/src/lib/withInsertDataCodeBlock.spec.tsx:13–18  ·  view source on GitHub ↗
(input: SlateEditor)

Source from the content-addressed store, hash-verified

11jsxt;
12
13const createEditor = (input: SlateEditor) =>
14 createSlateEditor({
15 plugins: [BaseParagraphPlugin, BaseCodeBlockPlugin],
16 selection: input.selection,
17 value: input.children,
18 });
19
20const createEditorWithLink = (input: SlateEditor) =>
21 createSlateEditor({

Calls 1

createSlateEditorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…