I'm using CKEditor in a textarea, it works pe开发者_高级运维rfectly on dev environment, although the debug bar doesn't appear.
When switching to the prod environment, CKEditor does not work.
Why? Maybe it has something to do with the debug bar? (as it is not appearing when I CKEditor loads)
I'm loading CKEditor this way:
<script src="{{ asset('js/ckeditor/ckeditor.js') }}" type="text/javascript"></script>
you don't give enough information for a definitve answer. but here are some thoughts that might give you an idea what's wrong:
1) the debug bar probably doesn't appear for the dev environment b/c you didn't explicitely provide <body>
Tags in your code.
2) maybe you forgot to clear the cache before your switch to the production environment. then the cached templates aren't refreshed.
3) check the source code and see if the propper url to the js-file was generated.
精彩评论