Skip to main content

Editor

Interfaces

EditorProps

Properties

PropertyTypeDescription
className?stringOverrides or extends the styles applied to the component.

Default
null
defaultValue?stringDefault value for the editor

Default
null
editable?booleanIs the content of the editor read only

Default
true
id?stringId of the feed object

Default
'poll'
onBlur?(event: FocusEvent) => voidHandler for blur event of the editor

Default
null
onChange?(value: string) => voidHandler for change event of the editor

Default
null
onFocus?(event: FocusEvent) => voidHandler for focus event of the editor

Default
null
toolbar?booleanShow the toolbar on top of the editor, elsewhere show buttons at the bottom of the editor

Default
false
uploadImage?booleanThis editor can upload images and insert into the html dom

Default
false

Type Aliases

EditorRef

EditorRef: object

Type declaration

MemberType
focus() => void

Source

packages/react-ui/src/components/Editor/Editor.tsx:42

Functions

EditorSkeleton()

EditorSkeleton(): JSX.Element

API documentation for the Community-JS Editor Skeleton component. Learn about the available props and the CSS API.

Import

import {EditorSkeleton} from '@selfcommunity/react-ui';

Component Name

The name SCEditor-skeleton-root can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.SCEditor-skeleton-rootStyles applied to the root element.

Returns

JSX.Element

Source

packages/react-ui/src/components/Editor/Skeleton.tsx:34


editor()

editor(props): ReactElement<any, string | JSXElementConstructor<any>>

NOTE: Exotic components are not callable.

Parameters

ParameterType
propsEditorProps & RefAttributes <EditorRef>

Returns

ReactElement<any, string | JSXElementConstructor<any>>

Source

packages/react-ui/src/components/Editor/Editor.tsx:277