Reputation: 183
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.
Upvotes: 3
Views: 3098
Reputation: 500
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.
Upvotes: 1