Skip to main content

Editor

Components

EditorBox()

EditorBox(props, context?): ReactNode

Editor component based on the slate.js framework

Parameters

ParameterType
propsEditorBoxProps
context?any

Returns

ReactNode

Source

libs/design-system-components/src/components/Editor/index.tsx:98

Props

EditorBoxProps

EditorBoxProps: object

Type declaration

MemberType
actionLabelstring
avatarProfile["avatar"]
cancelButtonLabelstring
customStylestring
disableActionLabelstring
disablePublishboolean
editorStateDescendant[]
emojiPlaceholderLabelstring
encodingFunction(value) => string
getMentions(query) => void
getTags(query) => void
handleDisablePublish(value) => void
maxEncodedLengthErrLabelstring
mentionsProfile[]
minHeightstring
noMentionsLabelstring
onCancelClick() => void
onClear() => void
onPublish(publishData) => void
placeholderLabelstring
profileIdstring | null
publishingAppstring
refReact.Ref<unknown>
setEditorStateReact.Dispatch<React.SetStateAction<Descendant[]>>
showAvatarboolean
showCancelButtonboolean
showDraftboolean
showPostButtonboolean
tagsobject[]
transformSource(avatar) => Image
withMeterboolean
withToolbarboolean

Source

libs/design-system-components/src/components/Editor/index.tsx:53