Editor
This is the core module. Create the editor and pass it to the components. The editor accepts the following options
Some options may be overwritten by the component props
Options
- content - (
Optional
) - a HTML string or json doc - plugins - (
Optional
) - prosemirror plugins - schema - (
Optional
) - prosemirror plugins - nodeViews - (
Optional
) - prosemirror nodeViews - history - (
Optional
) - enables history support in editor - keyboardShortcuts - (
Optional
) - enables keyboard shortcuts for the inbuilt schema - inputRules - (
Optional
) - enables inputrules for the inbuilt schema - attributes - (
Optional
) - editor attributes to forward to ProseMirror - linkValidationPattern - (
Optional
) - sets the Validation Pattern in the Link Component to validate the link
Editor Instance
Programatically make changes to the editor. Some options can be passed via component which will override these values, prefer them
setContent
Set value to the editor. value can be a html
or a json doc
registerPlugin
Register a new plugin to the editor
destroy
Destroy the editor