Cannot set property 'dir' of undefined in ckeditor


Cannot set property 'dir' of undefined in ckeditor



I am getting Uncaught TypeError: Cannot set property 'dir' of undefined when i try to load ckeditor. I am using requireJs to load Js and it's dependency and also using gulp to minify.



My requireJs config file:


requirejs.config({
baseUrl:"/js",
paths: {
"jquery": "vendors/jquery",
"ckeditorFull":"vendors/ckeditor/ckeditor"
},
shim: {
"ckeditorFull":{
deps:['jquery']
}
}
});

require(["app"],function(App){
App.init();
});



I am using Ckeditor verison 4.9.2 full edition.I have added basepath before initialising the ckeditor.


define([
"jquery","ckeditorFull"
],function($){

var ckeditorFull = function()
{
try{
window.CKEDITOR_BASEPATH = '../vendors/ckeditor/';
CKEDITOR.replace( 'summary-ckeditor',{
language: 'en'
});

}
catch(err) {
}
};
var init = function(){
ckeditorFull();
};
return {
init:init,
}
});



Then i trying to run the app i getting following error on my console.


Uncaught TypeError: Cannot set property 'dir' of undefined
at Object.d (app.min.js:24250)
at e (app.min.js:24251)
at Array.z (app.min.js:24251)
at y (app.min.js:24251)
at HTMLScriptElement.A.CKEDITOR.env.ie.e.$.onerror



I tried all possible ways but still can't resolve it.Please let me favour thank you!









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

.

How to generate build files in next js

Delphi Android file open failure with API 26