| 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 | it('should delete indentation on backspace', () => { |
| 12 | const initialText = 'hello '; |