Page 1 of 1

CKEditor Custom Config Path?

Posted: 20 Apr 2012, 15:00
by fsrinxmail
Hi everyone,

I struggle to pass my custom CKEditor configuration to the editor via the customConfig attribute. The file is in http://[webapp]/resources/js/ckEditorConfig.js. Unfortunaltely setting

Code: Select all

customConfig="/resources/js/ckEditorConfig.js"
does not work...

Can anyone help?

Cheers,
Fabian

Re: CKEditor Custom Config Path?

Posted: 20 Apr 2012, 15:14
by tandraschko
Hey,

we use it like this:

customConfig="#{request.contextPath}/js/config/ckeditor.js"

and it's working. Can you try to add #{request.contextPath}? Also check if the file is really available in your WAR.

Regards,
Thomas

Re: CKEditor Custom Config Path?

Posted: 20 Apr 2012, 16:40
by fsrinxmail
Thank you for your quick reply!!

Re: CKEditor Custom Config Path?

Posted: 02 Nov 2018, 23:01
by kaushik.mvsp
tandraschko wrote:
20 Apr 2012, 15:14
Hey,

we use it like this:

customConfig="#{request.contextPath}/js/config/ckeditor.js"

and it's working. Can you try to add #{request.contextPath}? Also check if the file is really available in your WAR.

Regards,
Thomas
Hi ,

I downloaded resources-ckeditor-6.2.RC1 and its working . However , i want to customize with less plugins

should i do like this customConfig="/ckeditor/config.js ? will it work? its not going inside script file...
Please suggest . do i need to overrider ckeditor.js?

CKEDITOR.editorConfig = function( config )
{
alert('inside');
config.removePlugins = 'elementspath';
config.toolbar = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ], items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ], items: [ 'Scayt' ] },
{ name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] },
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'others', items: [ '-' ] },
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic','Underline', '-', 'RemoveFormat' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ], items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent' ] },
{ name: 'styles', items: [ 'Styles', 'Format', 'Font','FontSize' ] }
];

}

Re: CKEditor Custom Config Path?

Posted: 03 Nov 2018, 14:31
by Melloware
I think you just need a custom config file like @tandraschko mentioned.