PortableTextEditableProps
PortableTextEditableProps =
Omit
<TextareaHTMLAttributes
<HTMLDivElement
>,"onPaste"
|"onCopy"
|"onBeforeInput"
> &object
Defined in: packages/editor/src/editor/Editable.tsx:60
Type declaration
Section titled “Type declaration”hotkeys?
Section titled “hotkeys?”
optional
hotkeys:HotkeyOptions
onBeforeInput()?
Section titled “onBeforeInput()?”
optional
onBeforeInput: (event
) =>void
Parameters
Section titled “Parameters”InputEvent
Returns
Section titled “Returns”void
onCopy?
Section titled “onCopy?”
optional
onCopy:OnCopyFn
onPaste?
Section titled “onPaste?”
optional
onPaste:OnPasteFn
rangeDecorations?
Section titled “rangeDecorations?”
optional
rangeDecorations:RangeDecoration
[]
optional
ref:React.Ref
<HTMLDivElement
>
renderAnnotation?
Section titled “renderAnnotation?”
optional
renderAnnotation:RenderAnnotationFunction
renderBlock?
Section titled “renderBlock?”
optional
renderBlock:RenderBlockFunction
renderChild?
Section titled “renderChild?”
optional
renderChild:RenderChildFunction
renderDecorator?
Section titled “renderDecorator?”
optional
renderDecorator:RenderDecoratorFunction
renderListItem?
Section titled “renderListItem?”
optional
renderListItem:RenderListItemFunction
renderPlaceholder?
Section titled “renderPlaceholder?”
optional
renderPlaceholder:RenderPlaceholderFunction
renderStyle?
Section titled “renderStyle?”
optional
renderStyle:RenderStyleFunction
scrollSelectionIntoView?
Section titled “scrollSelectionIntoView?”
optional
scrollSelectionIntoView:ScrollSelectionIntoViewFunction
selection?
Section titled “selection?”
optional
selection:EditorSelection
spellCheck?
Section titled “spellCheck?”
optional
spellCheck:boolean