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:
- Use ajax sample
- Type in a word, e.g. test, select it by using Ctrl + A
- Insert a link or anchor
- Press the END key
- 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
Keywords: | Firefox added |
---|---|
Status: | new → confirmed |
Version: | 4.2.2 (GitHub - master) → 3.0 |
comment:3 Changed 11 years ago by
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
Summary: | Firefox: Unable to escape from the link/anchor → [FF] Unable to escape from the link or anchor |
---|
comment:6 Changed 9 years ago by
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>
Problem can be reproduced from CKEditor 3.0 in Firefox.