4 ms·
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 te
by amelius 11y ago
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.
- talldan 11y agoperhaps report them on github issues? https://github.com/facebook/draft-js/issues https://github.com/facebook/draft-js/issues
- true_religion 11y ago> 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.