diff options
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) | ||