In ckeditor, I only want to allow two types of p elements, either red or blue. I prepared the following fiddle. The problem is that initially, paragraph format is plain black, neither blue or red. How can I set initial paragraph format in the editor?
My contentsCss link is as follows:
.clsRed{
color: red;
}
.clsBlue{
color: blue;
}
ckeditor configuration is set as follows:
allowedContent: 'p(clsRed,clsBlue)',
format_tags: 'Red;Blue',
format_Red: {'name': 'Red', element: 'p', attributes: {'class': 'clsRed'}},
format_Blue: {'name': 'Blue', element: 'p', attributes: {'class': 'clsBlue'}},