| 4 | const toPlainText = editorState => |
| 5 | editorState.getCurrentContent().getPlainText(); |
| 6 | const createWithText = text => { |
| 7 | const contentState = ContentState.createFromText(text); |
| 8 | return EditorState.createWithContent(contentState); |
| 9 | }; |
| 10 | |
| 11 | const tabs = times => ' '.repeat(times || 1); |
| 12 |