ckeditor / ckeditor4

The best enterprise-grade WYSIWYG editor. Fully customizable with countless features and plugins.
https://ckeditor.com/ckeditor-4
Other
5.8k stars 2.48k forks source link

Active link cursor continues on new line when pressing enter #4208

Open JeroenAtWorkI opened 4 years ago

JeroenAtWorkI commented 4 years ago

Type of report

Bug

Provide detailed reproduction steps (if any)

When using the ENTER_BR mode and trying to add a link under an existing link, the new url is updated to the existing link. In stead of being added below the exiting link.

Steps to reproduce:

  1. Go to the demo: https://ckeditor.com/ckeditor-4/demo/#inline
  2. Clear de content off the editor
  3. Create a link to example.com by using the link button in the toolbar
  4. Use the button "End" to remove the highlighting off the link.
  5. Press Shift+Enter to mimic the ENTER_BR mode
  6. Press the link button again and enter the website: github.com

We have an issue with the CKEditor link functionality when the alinea mode is set to off (You can reproduce this setting by using Shift-Enter instead of the default enter button in your demo: https://ckeditor.com/ckeditor-4/demo/#inline)

Expected result

A second link to github.

Actual result

The first link is edited to the url github.

Other details

jacekbogdanski commented 4 years ago

Could be partially related to https://github.com/ckeditor/ckeditor4/issues/1394