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

Internet Explorer - Place Cursor at Line Start #483

Closed
BorisFeuerpeil opened this issue Jun 7, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@BorisFeuerpeil
Copy link

commented Jun 7, 2017

Are you reporting a feature or a bug?

Bug

Original issue: http://dev.ckeditor.com/ticket/14556

Provide detailed reproduction steps (if any)

  1. Use Internet Explorer 11
  2. Write several Lines
  3. Try to place the Cursor at Line Start

Expected result

The cursor should be placed, even if i click 3 milimeters before the first char in the line.

Actual result

in chrome it will be placed correctly, in internet explorer it does not. it only place at line start when i click directly on the first char.

Other details

  • Browser: Internet Explorer
  • OS: Windows 10
  • CKEditor version: 4.6
  • Installed CKEditor plugins: nothing special
@mlewand

This comment has been minimized.

Copy link
Member

commented Jun 9, 2017

This comes from a different implementation in IE and the rest of the browsers. Caused by the fact that Chrome, Firefox when clicked in the margin area, will attempt to put the caret inside the editable area, you can test it in the example.

Workaround

There's a simple workaround for that: you could simply set margin to 0, and add padding: 20px in body styles in contents.css file. However we can't do this as this will break margin collapsing, elements inside the body to have unexpected mnargin, thus breaking experience for some of our users.

What can be done?

The best call is to report this issue to Microsoft bug tracker. However remember that Microsoft support for IE11 is limited to security fixes, so the enhancement will land only for Microsoft Edge. Still, that would be nice!

If you report the issue, please drop a link here, as we'd love to support it!

@mlewand mlewand closed this Jun 9, 2017

@mlewand mlewand changed the title Bug - Internet Explorer - Place Cursor at Line Start Internet Explorer - Place Cursor at Line Start Jan 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.