Opened 7 years ago

Closed 7 years ago

Last modified 7 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 7 years ago by Jakub Ś

Status: newconfirmed

comment:2 Changed 7 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 7 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 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy