Changes between Initial Version and Version 1 of Ticket #10515, comment 3


Ignore:
Timestamp:
Jun 12, 2013, 12:03:25 PM (6 years ago)
Author:
Jakub Ś
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10515, comment 3

    initial v1  
    11I have managed to reproduce this problem. **There are two issues here**
    22
    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, em 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.
     31. 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.
    44
    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.**
     52. 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.**
    66
    773. 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.
    88
    9 To work around this you can set {{{allowedContent:true}}} or add style rules to ACF for em and strong.
     9To work around this you can set {{{allowedContent:true}}} or add style rules to ACF for strong.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy