Browse Source

Restore the content change case that was accidentally removed

Yevhen Pavliuk 8 years ago
parent
commit
31b9a5bee6
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/RichTextEditor.js

+ 5
- 0
src/RichTextEditor.js View File

@@ -162,6 +162,11 @@ export default class RichTextEditor extends Component {
162 162
           });
163 163
           break;
164 164
         }
165
+        case messages.CONTENT_CHANGE: {
166
+          const content = message.data.content;
167
+          this.state.onChange.map((listener) => listener(content));
168
+          break;
169
+        }
165 170
         case messages.SELECTED_TEXT_CHANGED: {
166 171
           const selectedText = message.data;
167 172
           this._selectedTextChangeListeners.forEach((listener) => {