Changes between Initial Version and Version 1 of Ticket #10515, comment 3
- Timestamp:
- Jun 12, 2013, 12:03:25 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10515, comment 3
initial v1 1 1 I have managed to reproduce this problem. **There are two issues here** 2 2 3 1. Before dragging there is styled span which contains em and strong. When you drag and drop strong into em: span gets split in two, tags em and strong end up outside of span. All elements: new span, emand strong get main span styling (e.g. font-size:28px). **This is first issue - span is split in two and style is copied to newly created elements**. This part can be reproduced from CKEditor 3.0.3 1. Before dragging there is styled span which contains em and strong. When you drag and drop strong into em: span gets split in two, **dragged tag strong ends up outside of span**. Elements: new span and strong get main span styling (e.g. font-size:28px). **This is first issue - span is split in two and style is copied to newly created elements**. This part can be reproduced from CKEditor 3.0. 4 4 5 2. From CKEditor 4.0 new elements receive additionally {{{line-height: 1.6em;}}}. This is some Webkit computed style but it wasn't added till CKE 4.0 beta. **This is second issue - form CKE 4.0 {{{line-height: 1.6em;}}} is added to new span strong and em.**5 2. From CKEditor 4.0 new elements receive additionally {{{line-height: 1.6em;}}}. This is some Webkit computed style but it wasn't added till CKE 4.0 beta. **This is second issue - form CKE 4.0 {{{line-height: 1.6em;}}} is added to new span and strong.** 6 6 7 7 3. This isn't really issue but in CKE 4.1 we have introduced ACF. Since it works on e.g. setData you get such result but you can get the same by simply switching to source and back. The point is - Chrome copies styles on elements which didn't register any styles to ACF thus when data is loaded ACF removes these styles and you end up with small text. 8 8 9 To work around this you can set {{{allowedContent:true}}} or add style rules to ACF for em andstrong.9 To work around this you can set {{{allowedContent:true}}} or add style rules to ACF for strong.