vendredi 26 décembre 2014

CKeditor doesn't immediately show


So I am using a yeoman generator to create a website using angular located here, and I have integrated ckeditor into the website on two of the pages "/#/upload" and "/#/upload/how." One curious event happens, however, when I first access the site: Whenever I first access either /#/upload or /#/upload/how, the ckeditor is broken, but as soon as I visit the other url and come back, in both pages the ckeditor is fixed. The way I include the ckeditor is in multiple ways out of slight desperation:



<script src="//cdn.ckeditor.com/4.4.6/standard/ckeditor.js" type="text/javascript"></script>
<script src="bower_components/ckeditor/ckeditor.js" type="text/javascript"></script>


I notice in the debugging tool that this specific error message comes up: ReferenceError: CKEDITOR is not defined. I would like to specify that in the source, in two files I reference CKEDITOR:



  • app/scripts/directives/ckeditor.js

  • app/scripts/controllers/upload.js


If anyone would have any idea as to why this is happening, and how to avoid it, I would be most grateful. Thanks in advance.





Aucun commentaire:

Enregistrer un commentaire