类似于
< script type =text / javascript> var CKEDITOR_BASEPATH ='/ assets / ckeditor /'; < / script> <%= javascript_include_tagapplication%>您不需要设置config.assets.precompile任何东西。
Similar to Integrating CKEditor with Rails 3.1 Asset Pipline
I am trying to integrate ckeditor with my rails 3.2 application.
I have all ckeditor files copied under /app/assets/javascripts/ckeditor/*.
I have the following lines in my application.js and application.js is included in my layout file:
//= require jquery //= require jquery_ujs //= require ckeditor/ckeditor //= require_selfTaken it from the answer to Integrating CKEditor with Rails 3.1 Asset Pipline
I can understand that I need to add something like:
config.assets.precompile += your_filesto my development.rb file so that all the ckeditor files are precompiled when the application is loaded.
Although I tried a couple of paths, non worked and I keep getting the following error:
Can someone please tell me the right regular expresion to include all files for precompile, please?
解决方案I encountered the same problem and found a solution.Go to the following Link: docs.cksource/CKEditor_3.x/Developers_Guide/Specifying_the_Editor_Path
<script type="text/javascript"> var CKEDITOR_BASEPATH = '/assets/ckeditor/'; </script> <%= javascript_include_tag "application" %>you don't need to set config.assets.precompile anything.
更多推荐
将CKEditor与Rails 3.2集成
发布评论