Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Some bugs found after quick testing:

- When adding a long paragraph, and hitting enter in between, the caret disappears from the screen.

- When typing some text, say "abc", followed by a large number of spaces, and then selecting everything, the selection extends past the width of the editor window (colored selection bar sticks out).

- In a long paragraph, changing to a code-block, again the caret disappears.

More seriously:

- In a paragraph of 10,000 words, the editor becomes really slow, even when just typing text. This is strange because such operations (i.e., typing) are local, and React is supposed to deal only with incremental changes. I'm wondering what is going on here.



> In a paragraph of 10,000 words, the editor becomes really slow

I think it's because typing a single character causes it to reparse the entire typed text in order to check if the document model needs updating.

I've seen something similar in other editors. The only solution I can naively think of is to chunk the document and only do checks within the chunk.


perhaps report them on github issues? https://github.com/facebook/draft-js/issues




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: