Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I tried editing /sites/all/modules/ckeditor.config.js and also tried putting a ckeditor.config.js file into my theme, and set ckeditor to look in my theme for the config file.
I put this code in the file:
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For the complete reference:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
// Set the most common block elements.
config.format_tags = 'p;h2;h3;';
};
clear cache, etc,
and i still get the default format menu.
Comments
Comment #1
Matthieu Bilbille CreditAttribution: Matthieu Bilbille commentedI faced the same problem...
Here is a solution (ugly one)
Comment #2
ddille CreditAttribution: ddille commentedI'm having this problem as well.
If you place the code in Custom JavaScript configuration under advanced options it works fine but placing the code in ckeditor.config.js does nothing...
I assume that this has something to do with the drupal module having the option to set this from admin/config since I'm also having trouble with config.enterMode and config.shiftEnterMode which are also configurable from admin/config. It would be helpful if the module checked to see if the settings existed in the config file prior to over ridding or, at least, only activated the admin/config settings when deliberately set.
Comment #3
PCateNumbersUSA CreditAttribution: PCateNumbersUSA commentedI'm having this same exact problem with config.format_tags. I've also noticed similar problems with any toolbar declarations in ckeditor.config.js