Reputation: 11571
I would like to force the inline style attributes for all p elements. How can I do this? I've tried to do this:
CKEDITOR.config.format_p= { element : 'p', attributes : { style : 'padding:10px;' } }
This line is executed and appears in the dom, but nothing really changed.
Upvotes: 4
Views: 3798
Reputation: 875
config.format_p is the style that will be applied when "Paragraph" selected in the Styles combobox. If you want to change all p elements just add your own custom css file into the CKEditor body.
Upvotes: 2