import SimpleEditor from 'ceo-core/application/components/common/simple-editor.js'
SimpleEditor
Extends:
The SimpleEditor is a stripped down version of the RichEditor.
The SimpleEditor content is not intended to be parsed as HTML, or used for display purposes. Its intended use is internal notes, text fields and the like.
Constructor Summary
Public Constructor | ||
public |
constructor(props: *) |
Method Summary
Public Methods | ||
public |
|
|
public |
componentWillReceiveProps(nextProps: *) |
|
public |
|
|
public |
focus() |
|
public |
handleKeyCommand(command: *): boolean |
|
public |
handleKeyDown(e: *) |
|
public |
handleMentionClick(item: *, index: *) |
|
public |
handleReturn(e: *): boolean |
|
public |
onChange(editorState: *): * |
|
public |
onUpdate(state: *) |
|
public |
render(): * |
|
public |
toggleBlockType(blockType: *) |
|
public |
toggleInlineStyle(inlineStyle: *) |
Public Constructors
public constructor(props: *) source
Params:
Name | Type | Attribute | Description |
props | * |
Public Methods
public componentWillMount() source
public componentWillReceiveProps(nextProps: *) source
Params:
Name | Type | Attribute | Description |
nextProps | * |
public componentWillUnmount() source
public focus() source
public handleKeyDown(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
public handleMentionClick(item: *, index: *) source
Params:
Name | Type | Attribute | Description |
item | * | ||
index | * |
public onChange(editorState: *): * source
Params:
Name | Type | Attribute | Description |
editorState | * |
Return:
* |
public onUpdate(state: *) source
Params:
Name | Type | Attribute | Description |
state | * |
public toggleBlockType(blockType: *) source
Params:
Name | Type | Attribute | Description |
blockType | * |
public toggleInlineStyle(inlineStyle: *) source
Params:
Name | Type | Attribute | Description |
inlineStyle | * |