#8232 closed Bug (fixed)
Inline styles create empty garbage "cke_bm_" spans
Reported by: | Sheezwack | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.6.2 |
Component: | Core : Styles | Version: | 3.6.1 |
Keywords: | Cc: |
Description
This happens in IE9/Windows 7 at least (other versions not yet tested). It does not happen in FF4/Windows 7.
Problem exists in the current nightly build and 3.6.1 at least.
Steps to reproduce:
- Open the demo page (http://ckeditor.com/demo)
- Highlight the " about" text next to the "fairy tale" link USING THE MOUSE. Make sure the space before "about" is also selected.
- Change the text color
- The text color does not change, and empty hidden spans <span id="cke_bm_104S" style="display: none;"> </span> are added
Notes:
- This happens with text or background color (possibly other operations as well)
- Strangely it doesn't happen when you highlight " about" with the keyboard, holding shift to highlight.
- I have noticed that empty hidden spans are added in other cases as well, but again it only happens with mouse selection, not if you select with the keyboard.
Attachments (1)
Change History (9)
comment:1 Changed 12 years ago by
Keywords: | IE9 added |
---|---|
Status: | new → confirmed |
Version: | 3.6.1 → 3.2.1 |
comment:2 Changed 12 years ago by
Keywords: | Firefox inline styles added |
---|---|
Summary: | [IE9] Text color issue & empty span issue → Inline styles create empty garbage "cke_bm_" spans |
Version: | 3.2.1 → 3.6.1 |
I'm having this same issue, but with some key differences:
- I can reproduce it in IE9, Firefox, and Safari
- Keyboard or mouse selection makes no difference
In my case I'm trying to use custom defined styles. To reproduce:
- Visit my instance of CKeditor 3.6.1 at http://editor.crcnachurch.org
- Paste in the following source:
<h3> Test Item 1</h3> <div class="unfold_body unfold_hidden"> <p> Test Text 1</p> </div> <!-- .unfold_body --> <h3> Test Item 2</h3> <div class="unfold_body unfold_hidden"> <p> Test Text 2</p> </div> <!-- .unfold_body --> <h3> Test Item 3</h3> <div class="unfold_body unfold_hidden"> <p> Test Text 3</p> </div> <!-- .unfold_body -->
- Select first H3 item (Test Item 1)
- Apply "Unfolder Span" style from Styles dropdown (works)
- Select second or third H3 item (Test Item 2 or Test Item 3)
- Apply "Unfolder Span" (doesn't work, adds garbage spans)
comment:3 Changed 12 years ago by
The process of posting my comment helped me realize that it is the HTML comments in my example that are triggering the bug. This is why it works correctly on the first item. After removing the comments, all items work correctly.
It remains to be seen if this is the same issue, but it does produce the same output of empty spans.
Changed 12 years ago by
Attachment: | 8232.patch added |
---|
comment:5 Changed 12 years ago by
Component: | General → Core : Styles |
---|---|
Keywords: | IE9 Firefox inline styles removed |
Owner: | set to Garry Yao |
Status: | confirmed → review |
comment:6 Changed 12 years ago by
Milestone: | → CKEditor 3.6.2 |
---|---|
Status: | review → review_passed |
comment:7 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed with [7226].
comment:8 Changed 12 years ago by
The problem described in comment 2 still exists. I've raised a ticket for a general solution. #8732 CKEditor creating hidden spans which can result in hidden content
Result:
Issue has been reproducible in IE9 from CKE 3.2.1