Editor
Components
EditorBox()
EditorBox(
props
,context
?):ReactNode
Editor component based on the slate.js framework
Parameters
Parameter | Type |
---|---|
props | EditorBoxProps |
context ? | any |
Returns
ReactNode
Source
libs/design-system-components/src/components/Editor/index.tsx:98
Props
EditorBoxProps
EditorBoxProps:
object
Type declaration
Member | Type |
---|---|
actionLabel | string |
avatar | Profile ["avatar" ] |
cancelButtonLabel | string |
customStyle | string |
disableActionLabel | string |
disablePublish | boolean |
editorState | Descendant [] |
emojiPlaceholderLabel | string |
encodingFunction | (value ) => string |
getMentions | (query ) => void |
getTags | (query ) => void |
handleDisablePublish | (value ) => void |
maxEncodedLengthErrLabel | string |
mentions | Profile [] |
minHeight | string |
noMentionsLabel | string |
onCancelClick | () => void |
onClear | () => void |
onPublish | (publishData ) => void |
placeholderLabel | string |
profileId | string | null |
publishingApp | string |
ref | React.Ref <unknown > |
setEditorState | React.Dispatch <React.SetStateAction <Descendant []>> |
showAvatar | boolean |
showCancelButton | boolean |
showDraft | boolean |
showPostButton | boolean |
tags | object [] |
transformSource | (avatar ) => Image |
withMeter | boolean |
withToolbar | boolean |
Source
libs/design-system-components/src/components/Editor/index.tsx:53