Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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 11 years ago by Jakub Ś

Status: newconfirmed

comment:2 Changed 11 years ago by Jakub Ś

Resolution: invalid
Status: confirmedclosed

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;
}

comment:3 Changed 11 years ago by Jakub Ś

There is a ticket #9405 about showing styles in dropdown for flow/block-level elements but this is a different story.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy