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
|
||||
>
|
||||
|
@ -143,7 +143,7 @@
|
||||
"react-waypoint": "^7.3.1",
|
||||
"redis": "^2.6.2",
|
||||
"redis-lock": "^0.1.0",
|
||||
"rich-markdown-editor": "^9.0.6",
|
||||
"rich-markdown-editor": "^9.1.0",
|
||||
"safestart": "1.1.0",
|
||||
"sequelize": "4.28.6",
|
||||
"sequelize-cli": "^5.4.0",
|
||||
|
19
yarn.lock
19
yarn.lock
@ -7735,9 +7735,9 @@ retry-axios@0.3.2, retry-axios@^0.3.2:
|
||||
version "0.3.2"
|
||||
resolved "https://registry.yarnpkg.com/retry-axios/-/retry-axios-0.3.2.tgz#5757c80f585b4cc4c4986aa2ffd47a60c6d35e13"
|
||||
|
||||
rich-markdown-editor@^9.0.6:
|
||||
version "9.0.6"
|
||||
resolved "https://registry.yarnpkg.com/rich-markdown-editor/-/rich-markdown-editor-9.0.6.tgz#9d963e099cac15bf729a32448ab6a19bf10ca8ca"
|
||||
rich-markdown-editor@^9.1.0:
|
||||
version "9.1.0"
|
||||
resolved "https://registry.yarnpkg.com/rich-markdown-editor/-/rich-markdown-editor-9.1.0.tgz#d149eda8aa416c06eb1c2b3dfc474f9cd0b7a632"
|
||||
dependencies:
|
||||
"@tommoor/slate-edit-list" "0.19.0-0"
|
||||
"@wikifactory/slate-edit-blockquote" "^0.7.1"
|
||||
@ -7763,9 +7763,8 @@ rich-markdown-editor@^9.0.6:
|
||||
slate "^0.44.10"
|
||||
slate-collapse-on-escape "^0.8.1"
|
||||
slate-drop-or-paste-images "^0.9.1"
|
||||
slate-md-serializer "^5.2.3"
|
||||
slate-md-serializer "^5.3.0"
|
||||
slate-paste-linkify "^0.7.0"
|
||||
slate-plain-serializer "0.6.33"
|
||||
slate-react "^0.21.15"
|
||||
slate-schema-violations "^0.1.39"
|
||||
slugify "^1.3.0"
|
||||
@ -8089,9 +8088,9 @@ slate-hotkeys@^0.2.8:
|
||||
is-hotkey "0.1.4"
|
||||
slate-dev-environment "^0.2.1"
|
||||
|
||||
slate-md-serializer@^5.2.3:
|
||||
version "5.2.3"
|
||||
resolved "https://registry.yarnpkg.com/slate-md-serializer/-/slate-md-serializer-5.2.3.tgz#45e67f37dca2bfc2c4ea7b17206a1c653d40e55d"
|
||||
slate-md-serializer@^5.3.0:
|
||||
version "5.3.0"
|
||||
resolved "https://registry.yarnpkg.com/slate-md-serializer/-/slate-md-serializer-5.3.0.tgz#481c1cafe75151faee264803c30bf3dd5f4ed2ac"
|
||||
dependencies:
|
||||
hashtag-regex "^2.0.0"
|
||||
|
||||
@ -8101,10 +8100,6 @@ slate-paste-linkify@^0.7.0:
|
||||
dependencies:
|
||||
is-url "^1.2.2"
|
||||
|
||||
slate-plain-serializer@0.6.33:
|
||||
version "0.6.33"
|
||||
resolved "https://registry.yarnpkg.com/slate-plain-serializer/-/slate-plain-serializer-0.6.33.tgz#b731ecd8757f0d402ab36823f4be641c3f11a229"
|
||||
|
||||
slate-plain-serializer@^0.6.34:
|
||||
version "0.6.34"
|
||||
resolved "https://registry.yarnpkg.com/slate-plain-serializer/-/slate-plain-serializer-0.6.34.tgz#8775edc1190d5fe3c7196eb0ad665607d0547a87"
|
||||
|
Reference in New Issue
Block a user