Clicking at the end of a bullet point with a link makes cursor move to the start of the list item instead of the end
Opened this issue · 0 comments
earshinov commented
Expected behavior
Cursor should be placed where user clicks
Actual behavior
Clicking at the end of a bullet point with a link (and some other bullets) causes the cursor to move to the start of the list item instead of the end where the mouse cursor was. This can be frustrating when trying to add or edit some text.
Steps to reproduce the problem.
Option 1: On Froala examples page
https://froala.com/wysiwyg-editor/examples/insert-html/
Insert the following code in HTML mode:
<ul>
<li>PCGamesN (5/1/2024): <a data-fr-linked="true" href="https://www.pcgamesn.com/gray-zone-warfare/best-settings-for-max-fps" rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" target="_blank">https://www.pcgamesn.com/gray-zone-warfare/best-settings-for-max-fps</a>
<ul>
<li>"Unfortunately, Gray Zone Warfare is suffering ..."</li>
</ul>
</li>
</ul>
Then:
Option 2: JSFiddle
https://jsfiddle.net/earshinov/j1x93usy/2/
Editor version
v4.2.0
Browser
Microsoft Edge 124.0.2478.97 (Official build) (64-bit)
(Chromium-based)