Closed ItsRyanWu closed 5 years ago
I have already given up using Rangy to implement that function and was successful to realize it with native Range API
I wonder if Rangy is even needed anymore. The native range APIs seem to have caught up long ago to the benefits Rangy delivered.
For example:
After I make a selection and use Rangy to handle it and it will be transformed like this:
But how can I config Rangy to transform the original HTML like this?
And sometimes it expected to be a much more complicated result when I select incomplete words for example "This is a ita":
Did I miss some parameters to make Rangy preform like above? Actually, that's how Medium highlighter performs and I am making the same function now.