MCPcopy Index your code
hub / github.com/SamyPesse/draft-js-code / toPlainText

Function toPlainText

lib/__tests__/handleKeyCommand.js:4–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected