Hi,
i read the official documentation but no way to find what i am searching.
When a user wants his text centered, Ckeditor adds a "<p style="text-align: center">".
What i want, it's to change this format and ton insert "<center>" instead of. I don't know how to do.
Thanks in advance
Fri, 06/17/2011 - 12:08
#1
Re: Change formatting
Any idea to help me ?
Thanks
Re: Change formatting
up
Re: Change formatting
i really don't think you want to use the center element since it is deprecated. if you do, you'll need to use dataProcessors to alter the markup when writing it out.
viewtopic.php?t=22110
if your issue is with inline styles, you can specify your own classes to be used for the alignment buttons
add this to your config.js
/**
* Establish classes for left, center, right and justified alignment
*/
config.justifyClasses = [ 'align-left', 'align-center', 'align-right', 'align-justify' ];