I am trying to use draft.js for custom highlighting of text fragments. Namely I am trying to process text of 50000 symbols. I use algorythm shown here:
Example
For such amount of data editor becomes really slow and I can barely type anything. Is there any way to speed it up? Seems like handler functions with its regexps are pretty fast.
I am trying to use draft.js for custom highlighting of text fragments. Namely I am trying to process text of 50000 symbols. I use algorythm shown here: Example For such amount of data editor becomes really slow and I can barely type anything. Is there any way to speed it up? Seems like handler functions with its regexps are pretty fast.