Home Reference Source
public class | source

SimpleEditor

Extends:

react~React.Component → SimpleEditor

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: *)

Member Summary

Public Members
public
public

state: *

public

store: *

Method Summary

Public Methods
public
public
public
public

focus()

public

handleKeyCommand(command: *): boolean

public
public

handleMentionClick(item: *, index: *)

public
public

onChange(editorState: *): *

public

onUpdate(state: *)

public

render(): *

public

toggleBlockType(blockType: *)

public

toggleInlineStyle(inlineStyle: *)

Public Constructors

public constructor(props: *) source

Params:

NameTypeAttributeDescription
props *

Public Members

public decorator: * source

public state: * source

public store: * source

Public Methods

public componentWillMount() source

public componentWillReceiveProps(nextProps: *) source

Params:

NameTypeAttributeDescription
nextProps *

public componentWillUnmount() source

public focus() source

public handleKeyCommand(command: *): boolean source

Params:

NameTypeAttributeDescription
command *

Return:

boolean

public handleKeyDown(e: *) source

Params:

NameTypeAttributeDescription
e *

public handleMentionClick(item: *, index: *) source

Params:

NameTypeAttributeDescription
item *
index *

public handleReturn(e: *): boolean source

Params:

NameTypeAttributeDescription
e *

Return:

boolean

public onChange(editorState: *): * source

Params:

NameTypeAttributeDescription
editorState *

Return:

*

public onUpdate(state: *) source

Params:

NameTypeAttributeDescription
state *

public render(): * source

Return:

*

public toggleBlockType(blockType: *) source

Params:

NameTypeAttributeDescription
blockType *

public toggleInlineStyle(inlineStyle: *) source

Params:

NameTypeAttributeDescription
inlineStyle *