Opened 13 years ago

Last modified 8 years ago

#8146 closed Bug

Creating link continues onto second line — at Version 6

Reported by: Freddie Bingham Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc: mike@…

Description (last modified by Jakub Ś)

Using Chrome.

  1. Press the "Link" button.
  2. Enter "www.google.com", press "Ok"
  3. Observe that the selected link is placed into the editor.
  4. Press "End" to cancel the highlight and get cursor at end of link.
  5. Type "ABC".
  6. Observe that the characters aren't linked - which is correct.
  7. Delete these three characters with backspace
  8. If in ENTER_P mode, press, shift-enter, if in ENTER_BR, just press enter.
  9. Type "ABC".
  10. Note that "ABC" becomes linked, which it should not.

Simplified TC:

  1. In Chrome, Safari or Opera, having enter mode set to BR, clean editor contents using new page
  2. Click link button and insert link
  3. Press END button
  4. Press Enter (if you start typing everything is ok)
  5. Start typing - link is continued.

Change History (6)

comment:1 Changed 13 years ago by Jakub Ś

Status: newconfirmed
Version: 3.6.13.0

I have managed to reproduce your TC in Webkit and Opera from CKEditor 3.0.

NOTE: Following your TC I did not produce the link in Firefox because I was out of link boundaries (See https://dev.ckeditor.com/ticket/7796#comment:4 and #8195). But if after step 7. I pressed left arrow and then right arrow I could see on ElementsPath that I was in side of the link (problems on Webkit, IE and Opera with elementsPath are reported in #8149) although cursor was in the same place as after pressing BACKSPACE 3 times. Pressing SHIFT+ENTER broke the link and continued it in next line.

Last edited 12 years ago by Jakub Ś (previous) (diff)

comment:2 Changed 13 years ago by Freddie Bingham

Regardless of the pasting issue, this specific problem seems fixable. Is there any reason that shift-enter can't be made to just break out of an URL. Can the boundaries be manipulated in this manner for web-kit?

comment:3 Changed 13 years ago by Freddie Bingham

The attached diff appears to fix the problem for me in Webkit and Opera. It also fixes the issue in Opera where shift-enter after the link does not move the cursor down. As it is now, the Opera cursor appears to move to the top left corner until text is typed after pressing shift-enter.

Changed 13 years ago by Freddie Bingham

Attachment: 8146.diff added

comment:5 Changed 12 years ago by Jakub Ś

#9276 was marked as duplicate.

comment:6 Changed 11 years ago by Jakub Ś

Description: modified (diff)

Problem can also be reproduced in CKE 4.x (v4) in Opera Chrome Safari.

Last edited 11 years ago by Jakub Ś (previous) (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy