Opened 11 years ago

Last modified 9 years ago

#10966 confirmed Bug

[FF] Unable to escape from the link or anchor

Reported by: Irina Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: IBM Firefox Cc: Teresa Monahan, Satya Minnekanti

Description

To Reproduce:

  1. Use ajax sample
  2. Type in a word, e.g. test, select it by using Ctrl + A
  3. Insert a link or anchor
  4. Press the END key
  5. Press space and continue typing

Problem: Cursor is inside the anchor tag

This issue was previously fixed under http://dev.ckeditor.com/ticket/5978

Change History (6)

comment:1 Changed 11 years ago by Jakub Ś

Keywords: Firefox added
Status: newconfirmed
Version: 4.2.2 (GitHub - master)3.0

Problem can be reproduced from CKEditor 3.0 in Firefox.

comment:2 Changed 11 years ago by Jakub Ś

There are two other tickets that concern exiting link in Firefox: #8146, #6680.

Version 0, edited 11 years ago by Jakub Ś (next)

comment:3 Changed 11 years ago by Piotrek Koszuliński

I found that it happens because styles system includes all bogus <br>s in applied inline element.

<p>[a<br>]</p>   ->   <p><b>a<br></b></p>
<p>[a<br></p><p><br></p><p>b]<br></p>   ->   <p><b>a<br></b></p><p><b><br></b></p><p><b>b</b><br></p>

If <br> is included in inline element, then there's no way to leave it. I found this in a comment for #7041 in fixDom function.

On the other hand including <br>s in styles make it possible to apply them in empty lines. It wouldn't be possible otherwise.

comment:4 Changed 9 years ago by Anna Tomanek

Summary: Firefox: Unable to escape from the link/anchor[FF] Unable to escape from the link or anchor

comment:5 Changed 9 years ago by kkrzton

Still broken in FF 43.0 and CKEditor 4.5.6.

comment:6 Changed 9 years ago by kkrzton

As suggested in comment above, this issue is caused because bogus <br> gets include inside inline element. For the test case from description, after typing text:

<p>test<br></p>

After pressing Ctrl+A, the selection looks like this:

<p>[test<br>]</p>

Then the whole selection is wrapped into an 'a' element:

<p><a href="http://#" data-cke-saved-href="http://#">test<br></a></p>

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