fix: deprecate inconsistent config param case (#4172)

This commit is contained in:
andreascm
2020-08-31 19:25:48 +08:00
committed by GitHub
parent f1376aa5c3
commit 88a5a8098e
31 changed files with 409 additions and 144 deletions

View File

@ -195,7 +195,7 @@ export default class Editor extends React.Component {
onAddAsset={onAddAsset}
getAsset={getAsset}
buttons={field.get('buttons')}
editorComponents={field.get('editorComponents')}
editorComponents={field.get('editor_components')}
hasMark={this.hasMark}
hasInline={this.hasInline}
hasBlock={this.hasBlock}

View File

@ -22,6 +22,6 @@ export default {
],
},
},
editorComponents: { type: 'array', items: { type: 'string' } },
editor_components: { type: 'array', items: { type: 'string' } },
},
};