From e47e83cf6bded3d1924b4d500193e7876833ef83 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 2 Jul 2017 13:03:43 -0400 Subject: Created admin panel Currently allows you to create and edit blogs, including associated records. Uses a WYSIWYG editor that allows uploading images. Also included jQuery :( --- app/assets/javascripts/init_ckeditor.coffee | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 app/assets/javascripts/init_ckeditor.coffee (limited to 'app/assets/javascripts/init_ckeditor.coffee') diff --git a/app/assets/javascripts/init_ckeditor.coffee b/app/assets/javascripts/init_ckeditor.coffee new file mode 100644 index 0000000..5f653af --- /dev/null +++ b/app/assets/javascripts/init_ckeditor.coffee @@ -0,0 +1,6 @@ +ready = -> + $('.ckeditor').each -> + CKEDITOR.replace $(this).attr('id') + +$(document).ready(ready) +$(document).on('page:load', ready) -- cgit 1.4.1