I'm using the latest version (4.7.0) of ckeditor
.
I installed it via npm
and it lives inside a regular frontend (no fancy js framework).
Problem: The translation js-file - im my case "de.js" is loaded from the wrong url.
When I check the code I see the following in the code:
CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+a+".js"),f,this)
Which add just lang/de.js
to my current url instead of going to my static file folder.
My config looks like this:
CKEDITOR.editorConfig = function (config) {
config.toolbar = 'Custom';
config.toolbar_Custom = [
{
name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Styles',
'Format', 'NumberedList', 'BulletedList', 'Undo', 'Redo', 'Image', 'Smiley'],
},
];
config.extraPlugins = 'clipboard,dialog,uploadimage,uploadfile';
config.imageUploadUrl = '/uploader/';
config.uploadUrl = '/uploader/';
};
I tried to add:
config.baseHref = '/static/ckeditor/';
and
config.path = '/static/ckeditor/';
and
config.basepath = '/static/ckeditor/';
But still, the code is loaded from the relative URL.
Does anybody know how to properly configure the editor so it's not loading the files from a (wrong) relative path?
Thx
Ron
UPDATE:
This is my config file, I add it via the customConfig
parameter:
CKEDITOR.editorConfig = function( config ) {
config.toolbar = 'Custom';
config.toolbar_Custom = [
{
name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Styles',
'Format', 'NumberedList', 'BulletedList', 'Undo', 'Redo', 'Image', 'Smiley'],
},
];
config.extraPlugins = 'clipboard,dialog,uploadimage,uploadfile';
config.imageUploadUrl = '/uploader/';
config.uploadUrl = '/uploader/';
config.basePath = '/static/ckeditor/';
};