Open psalishol opened 1 year ago
I'm facing the same problem, any update on this?
@psalishol were you able to find a workaround?
I found this issue too
when I am change the color before start input
richText.current?.setForeColor(color);
the cursor will back to start point.
Currently experiencing formatting issue with the editor in my React Native project. I've been trying to update the editor's HTML content dynamically without the cursor restarting from the content start.
Initially, I tried the following implementation:
The action successfully updates the content, it also causes the cursor to reset to the beginning of the content, which is not the desired behavior.
Steps to Reproduce:
Expected Behavior:
When updating the HTML content of the editor, the cursor should remain at its current position without resetting to the beginning of the content.
Actual Behavior:
After updating the editor's content, the cursor resets to the start of the content, which is not the desired behavior.
Environment:
Additional Information:
I have attempted to find an alternative solution or workaround, but haven't been successful so far. Any assistance or guidance on how to update the content without the cursor resetting would be greatly appreciated.
@stulip