Bump RME, improve perf

This commit is contained in:
Tom Moor
2019-03-30 23:36:02 -07:00
parent 20a54bd2e9
commit 1883e77d5c
4 changed files with 13 additions and 16 deletions

View File

@@ -29,13 +29,15 @@ class DocumentEditor extends React.Component<Props> {
};
render() {
const { readOnly } = this.props;
const { readOnly, defaultValue } = this.props;
return (
<React.Fragment>
<StyledEditor
ref={ref => (this.editor = ref)}
plugins={plugins}
options={{ normalize: !defaultValue }}
defaultValue={defaultValue}
{...this.props}
/>
<ClickablePadding

View File

@@ -152,7 +152,7 @@ class Header extends React.Component<Props> {
<Action>
<Button
onClick={this.handleSave}
title={`Save changes ${isDraft ? '' : `${meta}+Enter`}`}
title={`Save changes (${meta}+Enter)`}
disabled={savingIsDisabled}
isSaving={isSaving}
neutral={isDraft}
@@ -167,7 +167,7 @@ class Header extends React.Component<Props> {
<Action>
<Button
onClick={this.handlePublish}
title={`Publish document (${meta}+Enter)`}
title="Publish document"
disabled={savingIsDisabled}
small
>