File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
draft-js-plugins-editor/src/Editor Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ export default class PluginEditor extends Component {
123
123
preventDefaultBehaviour = this . plugins
124
124
. map ( ( plugin ) => {
125
125
if ( plugin . handleKeyCommand ) {
126
- const handled = plugin . handleKeyCommand ( command ) ;
126
+ const handled = plugin . handleKeyCommand ( command , this . getEditorState , this . onChange ) ;
127
127
if ( handled === true ) {
128
128
return handled ;
129
129
}
@@ -168,7 +168,7 @@ export default class PluginEditor extends Component {
168
168
let command = this . plugins
169
169
. map ( ( plugin ) => {
170
170
if ( plugin . keyBindingFn ) {
171
- const pluginCommand = plugin . keyBindingFn ( keyboardEvent ) ;
171
+ const pluginCommand = plugin . keyBindingFn ( keyboardEvent , this . getEditorState , this . onChange ) ;
172
172
if ( pluginCommand ) {
173
173
return pluginCommand ;
174
174
}
You can’t perform that action at this time.
0 commit comments