I am reacquainting myself with Rails and I am really liking Active Admin. I would like to get tinyMCE working with it for use in text areas. However, any instructions I find are incomplete. For some reason, I think that I am missing something really simple here.
So, for example, I have tinymce-rails installed (3.4.9) and followed the instructions (https://github.com/spohlenz/tinymce-rails). However, here's where I think I failed: actually initiating tinyMCE. According to the doc, I have two options:
- use the <%= tinymce %> helper or...
- initialize it like the following
tinyMCE.init({ mode: 'textareas', theme: 'advanced' });
I tried adding the latter to my active_admin.js file to no avail.
If someone could guide me on this, I would be most appreciative.