Interface: RichTextEditorProps
The Rich text editor component properties.
Extends
Omit<ReactQuill.ReactQuillProps,"formats"|"modules">
Properties
bounds?
optionalbounds?:HTMLElement|string
Inherited from
Omit.bounds
children?
optionalchildren?:ReactElement<any,JSXElementConstructor<any> |string>
Inherited from
Omit.children
className?
optionalclassName?:string
The CSS class name.
Overrides
Omit.className
data-testid?
optionaldata-testid?:string
Test id applied to the labeled wrapper. ReactQuill does not forward this attribute.
defaultValue?
optionaldefaultValue?:Value
Inherited from
Omit.defaultValue
features?
optionalfeatures?:Partial<Record<RichTextFeature,boolean>>
Feature flags. Each key fully enables or disables format, toolbar, and module for that group.
id?
optionalid?:string
Inherited from
Omit.id
initialValue?
optionalinitialValue?:string
The initial value for the editor.
label?
optionallabel?:string
The label for the component.
onBlur?
optionalonBlur?: (previousSelection,source,editor) =>void
Parameters
previousSelection
Range
source
EmitterSource
editor
UnprivilegedEditor
Returns
void
Inherited from
Omit.onBlur
onChange
onChange: (
value?) =>void
Triggered after the content changed.
Parameters
value?
string
Returns
void
Overrides
Omit.onChange
onChangeSelection?
optionalonChangeSelection?: (selection,source,editor) =>void
Parameters
selection
Range
source
EmitterSource
editor
UnprivilegedEditor
Returns
void
Inherited from
Omit.onChangeSelection
onFocus?
optionalonFocus?: (selection,source,editor) =>void
Parameters
selection
Range
source
EmitterSource
editor
UnprivilegedEditor
Returns
void
Inherited from
Omit.onFocus
onKeyDown?
optionalonKeyDown?: (event) =>void
Parameters
event
any
Returns
void
Inherited from
Omit.onKeyDown
onKeyPress?
optionalonKeyPress?: (event) =>void
Parameters
event
any
Returns
void
Inherited from
Omit.onKeyPress
onKeyUp?
optionalonKeyUp?: (event) =>void
Parameters
event
any
Returns
void
Inherited from
Omit.onKeyUp
placeholder?
optionalplaceholder?:string
Inherited from
Omit.placeholder
preserveWhitespace?
optionalpreserveWhitespace?:boolean
Inherited from
Omit.preserveWhitespace
readOnly?
optionalreadOnly?:boolean
Inherited from
Omit.readOnly
style?
optionalstyle?:CSSProperties
Inherited from
Omit.style
tabIndex?
optionaltabIndex?:number
Inherited from
Omit.tabIndex
theme?
optionaltheme?:string
Inherited from
Omit.theme
useSemanticHTML?
optionaluseSemanticHTML?:boolean
If true, stores Quill semantic HTML instead of the editor DOM HTML.
Overrides
Omit.useSemanticHTML
value?
optionalvalue?:Value
Inherited from
Omit.value