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

Function createPlateEditor

packages/core/src/react/editor/withPlate.ts:141–148  ·  view source on GitHub ↗
({
  editor = createEditor(),
  ...options
}: CreatePlateEditorOptions<V, P> = {})

Source from the content-addressed store, hash-verified

139 * @see {@link withPlate} for the underlying function that applies Plate enhancements to an editor.
140 */
141export const createPlateEditor = <
142 V extends Value = Value,
143 P extends AnyPluginConfig = PlateCorePlugin,
144>({
145 editor = createEditor(),
146 ...options
147}: CreatePlateEditorOptions<V, P> = {}): TPlateEditor<V, InferPlugins<P[]>> =>
148 withPlate<V, P>(editor, options);

Calls 2

createEditorFunction · 0.90
withPlateFunction · 0.85

Tested by 4

createEditorFunction · 0.72
PlateWrapperFunction · 0.72
createScopedWrapperFunction · 0.72
createPlateTestEditorFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…