#9762 closed New Feature (invalid)
CKEditor should support multiple classes for single element in styles dropdown
| Reported by: | Jakub Ś | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | Core : Styles | Version: | 3.0 |
| Keywords: | Cc: |
Description
Currently it is only possible to assign one class to element.
{ name : 'Test', element : 'div', attributes : { 'class':'element-has-class'}
It should be possible to assign multiple classes.
Change History (3)
comment:1 Changed 13 years ago by
| Status: | new → confirmed |
|---|
comment:2 Changed 13 years ago by
| Resolution: | → invalid |
|---|---|
| Status: | confirmed → closed |
comment:3 Changed 13 years ago by
There is a ticket #9405 about showing styles in dropdown for flow/block-level elements but this is a different story.

My bad. it turned out that all you have to do is define
,{ name : 'abc', element : 'table', attributes : { 'class':'green red'} ,{ name : 'def', element : 'ol', attributes : { 'class' :'green red'} } ,{ name : 'ghi', element : 'span', attributes : { 'class' :'green red'} }and the in contents.css classes:
.red{ color: #993300; font-family:comic sans ms,cursive; } .green{ font-size : 16px; text-decoration : underline; background-color:yellow; }