ng-ckeditor icon indicating copy to clipboard operation
ng-ckeditor copied to clipboard

ReferenceError: CKEDITOR is not defined if (angular.isUndefined(CKEDITOR)) {

Open ipsitam opened this issue 9 years ago • 10 comments

I am getting the above error when using it.

ipsitam avatar Mar 24 '15 11:03 ipsitam

Same here. Trying to use it in VS2013 project. Manually added ng-ckeditor.js and ng-ckeditor.css to project.

MuadDib avatar Mar 27 '15 11:03 MuadDib

do this before ur js gets loaded.

CKEDITOR.timestamp=null

It worked for me.

ipsitam avatar Mar 27 '15 11:03 ipsitam

Hmm, I appreciate the help but can you explain a bit more how and where you added it? CKEDITOR is not defined anywhere so I cannot just say CKEDITOR.timestamp as it's not defined.

MuadDib avatar Mar 27 '15 11:03 MuadDib

Thank You, I figured it out... Didn't expect it to need cdEditor itself, but after including it, it loads no problem.

I guess, I am too used to small directives you just add without dependency. Although it would've been nice it was mentioned Readme.md

MuadDib avatar Mar 27 '15 12:03 MuadDib

I have ckEditor in my app, but I don't get this message. However, when I want to test my app with jasmin I get it. It makes fail my tests. What can I do with it?

Andras-Csanyi avatar Jul 18 '15 10:07 Andras-Csanyi

Have you added them to karma.conf.js (adjust path for you project struct.) 'lib/frontend/components/ng-ckeditor/libs/ckeditor/ckeditor.js', 'lib/frontend/components/ng-ckeditor/ng-ckeditor.min.js',

pshahidi avatar Sep 08 '15 11:09 pshahidi

@MuadDib: where did you add this? I can't figure it out.

theednaffattack avatar Oct 18 '15 00:10 theednaffattack

I am also having this issue. I have it pointing to the ckeditor.js file in my bower_components directory and I made sure to add it below the angular declaration to make sure it has angular when running. I added ngCkeditor to my app.js file. This is the same process for all dependencies have added to my app. Except, this one causes an error whenever I try to load any page, and just gives me a blank screen. If I comment out the dependency in the app.js file, everything is fine, but re-adding it causes the error and blank screen.

ChalangRasul avatar Jul 26 '16 17:07 ChalangRasul

@chalangr12 a bit late to the party here but I don't suppose you figured out the issue in the end? I am loading ckeditor from the cdn (which works) but when adding to my karma config file it's complaining that CKEDITOR is not defined. I have included it as the first script that my tests load.

It loads fine for the application, it's just the tests that are failing. Interestingly the test pass if I load it via bower but I can't get it to work in my production state when all my files get bundled. Have tried setting the ckeditor base path to no avail.

So, i'm pretty much screwed one way or the other at the moment and found this thread on my googlings...

beazergood avatar Dec 04 '17 19:12 beazergood

@beazergood Nope, I went with TinyMCE unfortunately, but I will have to figure it out probably.

ChalangRasul avatar Dec 05 '17 20:12 ChalangRasul