Conversation
|
This breaks other untested code/cases ;( |
|
@sbstjn is this ready to merge? |
| text = text + textFragment.text; | ||
| characterMeta = characterMeta.concat(textFragment.characterMeta); | ||
|
|
||
| if (!characterMeta.isSuperset(textFragment.characterMeta)) { |
There was a problem hiding this comment.
Do you mind explaining how this fixes the large parsing of HTML data?
|
This fix breaks parsing. For this input: Notice the text
The bug this is trying to fix is in the |
|
Later: my fix does not work. |
|
But this patch does: |
Roughtly following the suggestion here sstur#139
Hi,
Thanks for the great
react-rte! We noticed a few performance issues with the underlyingdraft-js-import-htmlanddraft-js-import-elementlibraries. I tried to fix it for "our use case" and added tests that make sure large/weird HTML structures can be parsed.Existing tests still work fine 🎉
//cc @HenrikFricke