({
editor = createEditor(),
...options
}: CreatePlateEditorOptions<V, P> = {})
| 139 | * @see {@link withPlate} for the underlying function that applies Plate enhancements to an editor. |
| 140 | */ |
| 141 | export 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); |
searching dependent graphs…