The API reference is a Work in Progress and will be continuously improved and extended. We'd love to hear your feedback in our documentation repository.

Home > @edtr-io/core > EditorProps

EditorProps interface

Signature:
export interface EditorProps<K extends string = string>

Properties

PropertyTypeDescription
children?React.ReactNode | ((document: React.ReactNode) => React.ReactNode)(Optional)
createStoreEnhancer?StoreEnhancerFactory(Optional)
DocumentEditor?React.ContextType<typeof DocumentEditorContext>(Optional)
editable?boolean(Optional)
initialState{ plugin: string; state?: unknown; }
omitDragDropContext?boolean(Optional)
onChange?ChangeListener(Optional)
onError?React.ContextType<typeof ErrorContext>(Optional)
pluginsRecord<K, EditorPlugin>
PluginToolbar?React.ContextType<typeof PluginToolbarContext>(Optional)
theme?CustomTheme(Optional)