Editor
Interfaces
EditorProps
Properties
Property | Type | Description |
---|---|---|
className? | string | Overrides or extends the styles applied to the component. Default null |
defaultValue? | string | Default value for the editor Default null |
editable? | boolean | Is the content of the editor read only Default true |
id? | string | Id of the feed object Default 'poll' |
onBlur? | (event : FocusEvent ) => void | Handler for blur event of the editor Default null |
onChange? | (value : string ) => void | Handler for change event of the editor Default null |
onFocus? | (event : FocusEvent ) => void | Handler for focus event of the editor Default null |
toolbar? | boolean | Show the toolbar on top of the editor, elsewhere show buttons at the bottom of the editor Default false |
uploadImage? | boolean | This editor can upload images and insert into the html dom Default false |
Type Aliases
EditorRef
EditorRef:
object
Type declaration
Member | Type |
---|---|
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 Name | Global class | Description |
---|---|---|
root | .SCEditor-skeleton-root | Styles 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
Parameter | Type |
---|---|
props | EditorProps & RefAttributes <EditorRef > |
Returns
ReactElement
<any
, string
| JSXElementConstructor
<any
>>