G. Scott Olson
G. Scott Olson
Thanks, @lovell. I appreciate the quick reply.
Yes! Thanks for following up. Feel free to close this issue.
I have not authored types myself. I was hoping whoever did them initially could knock them out.
PR is open for what I *think* the `useSprings` typings might be.
A utility that provides a reference to the current block with cursor focus would be great. How about the boundingClientRect of the current selection (to ease in positioning popups, widgets,...
@bkniffler Nice! Thanks for sharing.
@AlastairTaft Getting the current block is straightforward using Draft: ``` javascript const currentContent = editorState.getCurrentContent() const selection = editorState.getSelection() const currentBlock = currentContent.getBlockForKey(selection.getStartKey()) ``` I prefer this technique over using...
Have you explored the documentation regarding [entities](https://facebook.github.io/draft-js/docs/advanced-topics-entities.html)? The **tweet example** also has [sample code for handling `@mentions` and hashtags](https://github.com/facebook/draft-js/blob/master/examples/tweet/tweet.html#L79-L136).
I should also add… Killer work on this project, team. I have been exploring contentEditable-n-React solutions for a few weeks now. This project is a huge leap forward. Thanks for...
I think the first solution seems reasonable. Thanks for the quick reply. ~~FWIW, Facebook Notes does not exhibit this behavior. How is this selection case handled in that product?~~ **Edit:**...