Guest User

Untitled

a guest
Feb 17th, 2019
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. import {
  2. Editor,
  3. EditorState,
  4. RichUtils,
  5. DefaultDraftBlockRenderMap
  6. } from 'draft-js';
  7.  
  8. ....
  9.  
  10. <Editor
  11. id={id}
  12. // ariaDescribedBy={`${id}-error`} // should display only on error but always displays, even when commented out?
  13. blockRenderMap={blockRenderMap}
  14. editorState={editorState}
  15. handleKeyCommand={this.handleKeyCommand}
  16. onChange={this.handleChange}
  17. onBlur={this.handleBlur}
  18. ref={c => {
  19. this.editor = c;
  20. }}
  21. placeholder={placeholder}
  22. spellCheck
  23. />
Add Comment
Please, Sign In to add comment