Opened 15 years ago
Last modified 11 years ago
#4505 confirmed New Feature
Merge inline styles into one tag on output HTML
Reported by: | Garry Yao | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Styles | Version: | |
Keywords: | Cc: |
Description
Sometimes inline styles based on the same tag could be further optimized by combining them into one, i.e.
// font color + font size <span style="font-size: 16px"><span style="color: #000000">This is my text.</span></span>
Could be output as
<span style="font-size: 16px;color: #000000">This is my text.</span>
Finally, this function should be configurable.
Change History (7)
comment:1 Changed 15 years ago by
Milestone: | CKEditor 3.2 → CKEditor 3.3 |
---|
comment:2 Changed 15 years ago by
Milestone: | CKEditor 3.3 → CKEditor 3.4 |
---|
comment:3 Changed 14 years ago by
Keywords: | Pending added |
---|---|
Milestone: | CKEditor 3.4 |
comment:4 Changed 14 years ago by
Keywords: | Confirmed added; Pending removed |
---|
The most important reason for this is to have a more compact output from the editor. It's a valid request, but there is no priority for it.
comment:5 Changed 11 years ago by
comment:6 Changed 11 years ago by
comment:8 Changed 11 years ago by
Ticket #6977 describes certain special case.
Not really sure if it should be applied here or not but perhaps should be also applied when font and span tags are used.
Additionally this case also mentions CSS rules that perhaps should also be merged
background-color: rgb(130, 130, 130);
and background-color:#ff0000;
We need to understand the necessity of this feature, do we have a strong request behind this? And when considering implementation, it's mostly only applicable on <span> but we have to employee a catch-all filter for doing that.