Skip to content

Function: EditorContent() ​

ts
function EditorContent(__namedParameters): ReactElement;

The editable area. Renders a wrapper <div> that receives your props (className, id, data-*) and an inner <div> that the editor owns. Keeping them separate stops React and ProseMirror from fighting over the same element's attributes (ProseMirror adds class="ProseMirror", role, ARIA).

Parameters ​

ParameterType
__namedParametersEditorContentProps

Returns ​

ReactElement