When I backspace to just enough to remove "Titles" in order to replace it with text I want, the cursor doesn't stay within the styled element and resets to the beginning of the line.
// A *self-contained* demonstration of the problem follows...
Expected behavior:
if I backspace enough exact amount of chars in the div, and then want to type in new text, it should retain the styling within that div the cursor was at.
Actual behavior:
Backspace enough and then type, the styling is gone.
Jodit Version: 4.0.18
Browser: Chrome/Safari OS: Windows/Mac Is React App: true
Code In the jodit editor the html is:
When I backspace to just enough to remove "Titles" in order to replace it with text I want, the cursor doesn't stay within the styled element and resets to the beginning of the line.
Expected behavior: if I backspace enough exact amount of chars in the div, and then want to type in new text, it should retain the styling within that div the cursor was at.
Actual behavior: Backspace enough and then type, the styling is gone.
Styled element:![Screenshot 2024-04-24 112752](https://github.com/xdan/jodit/assets/119517642/3ad4bdc9-dffb-4eb6-b567-2b25e403b748)
Trying to replace text:![Screenshot 2024-04-24 112953](https://github.com/xdan/jodit/assets/119517642/ed83626e-038a-4097-9fbe-77413a321685)
Reproducible on jodit playground