Bump RME, improve perf
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user