Opened 11 years ago

Closed 11 years ago

#10054 closed New Feature (duplicate)

Alignment & alignment classes that work on most elements

Reported by: Jari Pennanen Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

There is no way to define alignment classes. Alignment should happen from buttons in toolbar, for most elements. (Centering Images is not even possible at the moment.)

I think TinyMCE has got this one right, try clicking the image and then alignment buttons in toolbar.

I suggest also looking at how TinyMCE implemented alignment classes in configuration one just types elements and the class and that's it, then all of the alignment calls define classes.

Nevertheless ckeditor is technically superior :)

Change History (1)

comment:1 Changed 11 years ago by Jakub Ś

Resolution: duplicate
Status: newclosed

There is no way to define alignment classes.

Please see: http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-justifyClasses. All you have to do is define class names and then classes in contents.css file or page styles if you are using inline editor e.g.

h1.AlignCenter {
	text-align:center;
}
div.AlignCenter {	
	margin: 0 auto; 	
}
.AlignLeft {	
	float:left;
}
...

About centring issues we have separate issue for it: http://dev.ckeditor.com/ticket/8938

I'm closing this one as duplicate.

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