README.md in ckeditor_rails-4.16.2 vs README.md in ckeditor_rails-4.16.3
- old
+ new
@@ -62,10 +62,18 @@
config.language = "zh"
config.uiColor = "#AADC6E"
true
```
+Type `CKEDITOR.config` in browser's console panel to check all configuration.
+
+Add your `config.js` to assets precompile list in `config/initializers/assets.rb`.
+
+``` ruby
+Rails.application.config.assets.precompile += %w( ckeditor/config.js )
+```
+
### Include customized stylesheet for contents of CKEditor
Add your `app/assets/stylesheets/ckeditor/contents.css.scss` like
``` scss
@@ -78,10 +86,16 @@
*margin-right:0px;
padding:4 20px;
}
```
+Add your `contents.css` to assets precompile list in `config/initializers/assets.rb`.
+
+``` ruby
+Rails.application.config.assets.precompile += %w( ckeditor/contents.css )
+```
+
### Remove CKEditor addon services
To avoid see warnings like
``` js
@@ -205,9 +219,11 @@
If you observe an issue (especially in Heroku environment) where asset compilation process skips JS and or CSS files, try adding the following line to `app/environments/production.rb` (or config file for the environment where you observe the issue):
``` ruby
config.assets.precompile += ['ckeditor/*']
```
+
+Run `bundle exec rake assets:precompile` and `ls -al public/assets/ckeditor/` to check if everything is generated as expected.
## License
CKEditor use [CKEditor license](http://ckeditor.com/license).