Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #4783

Open
earshinov opened this issue May 12, 2024 · 0 comments

Comments

@earshinov
Copy link

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>&quot;Unfortunately, Gray Zone Warfare is suffering ...&quot;</li>
		</ul>
	</li>
</ul>

Then:

image

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant