Hi,
i tried to customize the configuration with a custom configuration file. Fhe file is found, but not everything is running.
in Page, I set:
in my_config.js:
config.toolbar = 'mytoolbar'; => okay, this is running
config.stylesSet = 'mystyles'; => this is not running
config.removePlugins = 'elementspath'; => okay, this is running
config.width = '500px'; => this is not running
config.height = '500px'; => this is not running
I have also tried to change the styles. I want to keep only one record from the list: "small"
In my config file I wrote:
CKEDITOR.stylesSet.add('mystyles',[{name:'Small',element:'small'}]);
but its not running...
Can anybody help me?
The configfile:
i tried to customize the configuration with a custom configuration file. Fhe file is found, but not everything is running.
in Page, I set:
CKEDITOR.replace( 'Text', { customConfig : '/ckeditor/my_config.js' });
in my_config.js:
config.toolbar = 'mytoolbar'; => okay, this is running
config.stylesSet = 'mystyles'; => this is not running
config.removePlugins = 'elementspath'; => okay, this is running
config.width = '500px'; => this is not running
config.height = '500px'; => this is not running
I have also tried to change the styles. I want to keep only one record from the list: "small"
In my config file I wrote:
CKEDITOR.stylesSet.add('mystyles',[{name:'Small',element:'small'}]);
but its not running...
Can anybody help me?
The configfile:
CKEDITOR.editorConfig = function( config ) { config.toolbar = 'mytoolbar'; config.stylesSet = 'mystyles'; config.removePlugins = 'elementspath'; config.width = '500px'; config.height = '500px'; config.toolbar_mytoolbar = [ { name: 'document', items : [ 'Source','-','Preview'] }, { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] }, { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] }, '/', { name: 'basicstyles', items : [ 'Bold','Italic','Subscript','Superscript','-','RemoveFormat' ] }, { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv', '-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ] }, '/', { name: 'links', items : [ 'Link','Unlink','Anchor' ] }, { name: 'insert', items : [ 'Image','Flash','Table','SpecialChar','Iframe' ] }, { name: 'tools', items : [ 'Maximize', '-','About' ] }, '/', { name: 'styles', items : [ 'Styles','Format' ] } ]; }; CKEDITOR.stylesSet.add('mystyles',[{name:'Small',element:'small'}]);
Re: Some configuration-settings are not running
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!