Opened 13 years ago
Closed 9 years ago
#8146 closed Bug (duplicate)
Creating link continues onto second line
Reported by: | Freddie Bingham | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | Cc: | mike@… |
Description (last modified by )
Using Chrome.
- Press the "Link" button.
- Enter "www.google.com", press "Ok"
- Observe that the selected link is placed into the editor.
- Press "End" to cancel the highlight and get cursor at end of link.
- Type "ABC".
- Observe that the characters aren't linked - which is correct.
- Delete these three characters with backspace
- If in ENTER_P mode, press, shift-enter, if in ENTER_BR, just press enter.
- Type "ABC".
- Note that "ABC" becomes linked, which it should not.
Simplified TC:
- In Chrome, Safari or Opera, having enter mode set to BR, clean editor contents using new page
- Click link button and insert link
- Press END button
- Press Enter (if you start typing everything is ok)
- Start typing - link is continued.
Attachments (2)
Change History (15)
comment:1 Changed 13 years ago by
Status: | new → confirmed |
---|---|
Version: | 3.6.1 → 3.0 |
comment:2 Changed 13 years ago by
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
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
comment:6 Changed 12 years ago by
Description: | modified (diff) |
---|
Problem can also be reproduced in CKE 4.x (v4) in Opera Chrome Safari.
comment:8 Changed 12 years ago by
#10154 was marked as dupliacte.
TC from that ticket:
- Load this HTML:
<p>1. Select the whole link:</p> <p><a href="http://ckeditor.com">My link</a></p> <p>2. Start typing... just the first letter will be linked.</p>
- Select the whole link line.
- Type "test".
comment:9 Changed 12 years ago by
Cc: | mike@… added |
---|
comment:10 Changed 11 years ago by
comment:12 Changed 11 years ago by
I think in terms of general view on links and solution this issue is strongly related to #10709.
Changed 10 years ago by
Attachment: | shift enter and links issue.png added |
---|
comment:13 Changed 10 years ago by
This issue can also be reproduced by using the arrow keys to enter the link and then exit it.
I mean, if you create a link and press END the cursor is properly position outside the anchor tag BUT if you press LEFT ARROW and RIGHT ARROW while being at the end of the link, the cursor remains inside the link so no matter if you press a letter, space or SHIFT+ENTER, anything you type is part of the anchor.
The only thing that breaks this behaviour is the ENTER key which properly ends the anchor.
This is reproducible in the demo page also. Image shift enter and links issue.png attached
comment:14 Changed 9 years ago by
Resolution: | → duplicate |
---|---|
Status: | confirmed → closed |
The issue with link handling in all mentioned browser but FF was solved. Due to different selection behavior in FF the tc can still be reproduced (FF 43.0, CKEditor 4.5.6) but it is the same as #14288. Marked as duplicate.
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.