| 2 | const handleKeyCommand = require('../handleKeyCommand'); |
| 3 | |
| 4 | const toPlainText = editorState => |
| 5 | editorState.getCurrentContent().getPlainText(); |
| 6 | const createWithText = text => { |
| 7 | const contentState = ContentState.createFromText(text); |
| 8 | return EditorState.createWithContent(contentState); |