allowedContent in Ckeditor

Tags: Ckeditor.

Ckeditor is a very powerful wysiwyg editor, it will however require a bit of configuration to customize.

I like giving users the best experience possible but I need to maintain control over the structure of content. ckeditor has a configuration option for dissallowedContent. The documentation page does a good job of showing different options but it is still a bit difficult to comprehend. Here are a few tips:

//config.allowedContent = true; // Allows all content, disables disallowedContent filter

config.disallowedContent = 'font; li{list-style-type}';