Ticket #1340 (closed Bug: wontfix)
Caret disappeares deleting a styled char
| Reported by: | pora | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.6.1 |
| Component: | General | Version: | SVN (FCKeditor) - Retired |
| Keywords: | Confirmed | Cc: |
Description (last modified by fredck) (diff)
FCKeditor Nightly Built version:
- type some text
- use for it an inline style for example "Inline quotation"
- select a character inside the styled area
- use for it another inline style for example "Cited work"
- go one position left (or right)
- delete the character (with backspace or delete)
- caret disappeares (but pushing up or down comes at the first or at the last row)
Change History
comment:1 Changed 6 years ago by fredck
- Version set to SVN
- Description modified (diff)
- Milestone set to FCKeditor 2.5
comment:2 Changed 6 years ago by fredck
Actually it's much simple to replicate the problem. Just load the following code in the source:
<p>Some t<strong>e</strong>xt</p>
Back to WYSIWYG, place the caret before the bold "e". Hit Backspace to delete it.
The "e" will be correctly deleted, but the caret will disappear. Note that the Style combo is showing "Strong Emphasis", which means that the <strong></strong> element is still there, and the caret is inside of it (just type some text to check it). As the caret is inside and empty element, Firefox doesn't' show it (known FF issue).
In IE, we have the same behavior, but the caret doesn't disappear.
Strangely enough, for some elements it works well. Just replace <strong> with <b> or <i> and you will see that the entire element is removed, not only its contents, and the caret will not disappear.

Reformatted the description for readability