Enable only a few headings in CKEditor
Allowing every format is way more than what we initially intended. I've only added h2 and h3 because h1 is set somewhere else in the page (like the title), and h4, h5 and h6 are usually not necessary.
This commit is contained in:
@@ -14,6 +14,7 @@ CKEDITOR.editorConfig = function( config )
|
||||
config.filebrowserUploadUrl = "/ckeditor/attachment_files";
|
||||
|
||||
config.allowedContent = true;
|
||||
config.format_tags = "p;h2;h3";
|
||||
|
||||
// Rails CSRF token
|
||||
config.filebrowserParams = function(){
|
||||
|
||||
Reference in New Issue
Block a user