Sfoglia il codice sorgente

Restore the content change case that was accidentally removed

Yevhen Pavliuk 8 anni fa
parent
commit
31b9a5bee6
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5
    0
      src/RichTextEditor.js

+ 5
- 0
src/RichTextEditor.js Vedi 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) => {