New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot set property 'dir' of undefined #508
Comments
Hi, I'm not able to reproduce described situation. Can you check my example (which work fine on my computer) and tell is this problem also occurs here? https://codepen.io/msamsel/pen/EXoagM?editors=1010 |
Hi, The problem doesn't occur on your example. The problem doesn't occur anymore on my app (i didn't test since this bug report), i don't know why. The only change since i post this bug is Chrome (it has been updated to v 59.0.3071.115). I think you can close this bug. Thank you for the time you spent on it ! |
You're welcome :) |
@msamsel - What did you have to do? I am using Angular 4.2.3 and Angular CLI and I am getting the same error messages. |
Hi @kattianita, If you are able to reproduce error with clear HTML + CSS + JS environment, please provide detail steps how to obtain such error. Another option which might be helpful is to use not-minified version of ckeditor. You can download this repository and use it you project. This should give you more descriptive error message. |
@kattianita to solve this problem in my angular 4.x app I simply added the CDN to the head tag in my
|
I encountered this error when I concat |
This happens when
Its works well if its removed from
|
This problem is presented by not placing the language script in the file index.
Then, they should confirm that all the tags are in the scripts. |
@kattianita had issues with angular as well.. including the language worked! thanks @iczabalegui2h |
In my project I just had to put the script with full-all <script src="https://cdn.ckeditor.com/4.5.11/full-all/ckeditor.js"></script> |
Some of above issue was related to inserting CKEditor inside Angular. From good news I can say that we currently working on Angular integration with CKEditor4. You can get some details about it here: #2481 |
Anybody had this problem and solved it when integrating with React? |
@Amir2828 Do you use official CKEditor React integration? If so could you report your issue in the integration repository? |
@f1ames I didnt use the CKEditor for react. I have a React Project which contains a grapesJS section. |
I'm facing the same issue after building my AngularJs app with gulp. Ckeditor seems to use a relative path to load it's required files from the source folder. Thank you |
@Amir2828 this issue is not reproducible with CKEditor 4 instance itself so it seems it is an integration issue. You may try to reach out to @simaosoares there are few external files which are loaded by CKEditor even in build CKEditor version and this files should be present where CKEditor looks for them. You may change the path by altering |
At The end I used a CDN link and I made it work, couldn't make it work with npm for some reason |
For others with this problem, if you have self-hosted the CKEditor script in your solution (for example for a classic ASP.NET application) and you do not have all the localization files of the plugin in your CKEditor folder, that can cause this issue to happen. We for example only had the
|
yes !! including the language worked! |
It's worked, Thank you so much! |
Just wanted add my two cents for Next JS. I was just testing the component out so I was doing it on a /ckeditor route using a |
I was having this exact error message. Turned out to be when the library loaded the relevant language files "ckeditor\lang\en.js" I was serving the files from a dinky little nodejs server that was not handling the requests properly. Adding a line to strip the querystring to the server fixed the issue. |
Are you reporting a feature or a bug?
Bug
Check if the issue is already reported
Maybe there is a link with #502
Provide detailed reproduction steps (if any)
CKEditor cannot instanciate.
This is the code :
Expected result
There should not be an error. There was no error with CKEditor 4.6.2 :
Actual result
There is no property "fr" on c, there was one in v4.6.2.
The result is the following error :
Other details
The text was updated successfully, but these errors were encountered: