diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-02 22:34:39 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-02 22:34:39 -0400 |
| commit | 21240f6664c65abf75439f92cea3cc1dcabc8d54 (patch) | |
| tree | 2acbab64ba0be93598fd65afa54d1a36805bf581 /app/assets/javascripts/admin/init_ckeditor.coffee | |
| parent | 48577e0ffaeaf67b8cce4984521ece4fdd2ba047 (diff) | |
| download | thoughts-21240f6664c65abf75439f92cea3cc1dcabc8d54.tar.gz thoughts-21240f6664c65abf75439f92cea3cc1dcabc8d54.tar.bz2 thoughts-21240f6664c65abf75439f92cea3cc1dcabc8d54.zip | |
Fixed the "create record" checkbox in admin
Some weird stuff about javascript and precompiliation. Will get around to cleaning up some of the javascript soon.
Diffstat (limited to 'app/assets/javascripts/admin/init_ckeditor.coffee')
| -rw-r--r-- | app/assets/javascripts/admin/init_ckeditor.coffee | 6 |
1 files changed, 6 insertions, 0 deletions
| diff --git a/app/assets/javascripts/admin/init_ckeditor.coffee b/app/assets/javascripts/admin/init_ckeditor.coffee new file mode 100644 index 0000000..5f653af --- /dev/null +++ b/app/assets/javascripts/admin/init_ckeditor.coffee | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | ready = -> | ||
| 2 | $('.ckeditor').each -> | ||
| 3 | CKEDITOR.replace $(this).attr('id') | ||
| 4 | |||
| 5 | $(document).ready(ready) | ||
| 6 | $(document).on('page:load', ready) | ||
