README.md in codemirror-rails-4.8 vs README.md in codemirror-rails-4.9

- old
+ new

@@ -19,32 +19,48 @@ ## CodeMirror for Rails >= 3.1 All of the assets from the most latest stable CodeMirror release are vendored so that you can use them with the asset pipeline. At a minimum, you will -probably want the following in your application.js and application.css: +probably want the following in your application.js: ```js //= require codemirror ``` +And in your application.css: + +```css +/* +*= require codemirror +*/ +``` + ### Adding a mode Additional syntax modes can be added to your application.js: ```js //= require codemirror/modes/ruby ``` -### Adding a util +### Adding an addon -Additional reusable util components can be added in your application.js: +Additional addons can be added in your application.js: ```js -//= require codemirror/utils/dialog +//= require_tree codemirror/addons/dialog ``` +And your application.css: + +```css +/* +*= require_tree codemirror/addons/dialog +*/ +``` + ### Adding a keymap Additional keymap bindings can be added to your application.js: ```js @@ -53,11 +69,13 @@ ### Adding a theme Additional CSS themes can be added to your application.css -```js -//= require codemirror/themes/night +```css +/* +*= require codemirror/themes/night +*/ ``` ### Precompiling Codemirror If your project is using precompiling, depending on your method of grabbing files to precompile, you might need to add the below line to your ```` application.rb```, to get rails to precompile all js, css files used by codemirror. You can also manually whitelist only the files that you use.