From 4c84cc41b7ca58cfd865ace85e2f6a41f955fda4 Mon Sep 17 00:00:00 2001 From: Hosmel Quintana Date: Mon, 1 Oct 2018 22:11:23 -0600 Subject: [PATCH] call plugin onChange method --- packages/djs-editor/src/EditorContainer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/djs-editor/src/EditorContainer.js b/packages/djs-editor/src/EditorContainer.js index 75a41f4..e19fef3 100644 --- a/packages/djs-editor/src/EditorContainer.js +++ b/packages/djs-editor/src/EditorContainer.js @@ -171,7 +171,7 @@ export default class EditorContainer extends Component { onChange = editorState => { this.props.onChange(editorState) - // this.eventCallback('onChange', editorState) + this.eventCallback('onChange', editorState) } render() { @@ -179,7 +179,7 @@ export default class EditorContainer extends Component { // plugin specific pluginMethods: { registerPlugin: this.registerPlugin, - setEditorState: this.onChange, + setEditorState: editorState => this.props.onChange(editorState), setEditorProps: editorProps => this.setState({ editorProps }) }, editorProps: {