Align title correctly when first character is emoji

This commit is contained in:
Tom Moor
2017-07-29 16:15:04 -07:00
parent cfcdae8aa0
commit 297bf850c2
9 changed files with 51 additions and 17 deletions

View File

@ -29,6 +29,7 @@ type Props = {
onImageUploadStart: Function,
onImageUploadStop: Function,
starred: boolean,
emoji: string,
readOnly: boolean,
heading?: ?React.Element<*>,
};
@ -213,6 +214,7 @@ type KeyData = {
className={cx(styles.editor, { readOnly: this.props.readOnly })}
schema={this.schema}
plugins={this.plugins}
emoji={this.props.emoji}
state={this.state.state}
onKeyDown={this.onKeyDown}
onChange={this.onChange}