import TextEditor from 'n2o/src/components/controls/TextEditor/TextEditor.jsx'TextEditor
Extends:
react~Component → TextEditor
Компонент TextEditor
Example:
toolbar: {
inline: { inDropdown: true },
list: { inDropdown: true },
textAlign: { inDropdown: true },
link: { inDropdown: true },
history: { inDropdown: true },
}
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
state: {"editorState": *, "value": *} |
|
Method Summary
| Public Methods | ||
| public |
componentDidUpdate(prevProps: *) |
|
| public |
convertToEditorState(value: *): * |
|
| public |
convertToHtml(editorState: *): * |
|
| public |
onEditorStateChange(editorState: *) |
|
| public |
render(): * |
|
Public Constructors
public constructor() source
Public Members
public state: {"editorState": *, "value": *} source
Public Methods
public componentDidUpdate(prevProps: *) source
Params:
| Name | Type | Attribute | Description |
| prevProps | * |
public convertToEditorState(value: *): * source
Params:
| Name | Type | Attribute | Description |
| value | * |
Return:
| * |
public convertToHtml(editorState: *): * source
Params:
| Name | Type | Attribute | Description |
| editorState | * |
Return:
| * |
public onEditorStateChange(editorState: *) source
Params:
| Name | Type | Attribute | Description |
| editorState | * |