3

Here are the steps that I took:

1)First I added the ng-ckeditor.min.js into my project

2)I included it into the page like so:

<script type="text/javascript" src="Scripts/ng-ckeditor.min.js"></script>

3) I added the dependancy into the module like this:

var summariesApp = angular.module('summariesApp', ['ui.bootstrap', 'ngCkeditor']);

I am getting an error in my console: "CKEDITOR is not defined". The error is in ng-ckeditor.min.js itself.

Here is the Github:

https://github.com/esvit/ng-ckeditor

Any help with this is appreciated. Thanks in advance.

6
  • 1
    did you include the script before or after you included angular? Commented Nov 7, 2014 at 19:02
  • Have you made sure that your ckeditor script is after angular script? Commented Nov 7, 2014 at 19:03
  • yes it is after the angular script Commented Nov 7, 2014 at 19:05
  • 3
    Did you include CKEditor itself (not ng-ckeditor)? Commented Nov 7, 2014 at 19:06
  • what do you mean by that? Commented Nov 7, 2014 at 19:08

1 Answer 1

1

You should manually add a reference to the actual ckeditor.js file in your html file.

open the index.html and look for the section which is managed by bower - it is marked with an opening and a closing comment.

add these lines above this section,

<!-- manually added js files -->
<script src="bower_components/ng-ckeditor/libs/ckeditor/ckeditor.js"></script>

note the relative path which might not be exactly as on my machine.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.