I worked on this as follows (outside of the setup described in repo )
In admin / my_class.rb:
ActiveAdmin.register MyClass do
form do |f|
f.inputs do
f.input :body, :input_html => { :class => "tinymce" }
end
end
end
In the / active _admin.rb initializers:
...
config.register_javascript 'tinymce.js'
This is what the tinymce.js script actually got to display in the admin layout.
In javascripts / active_admin.js:
$(document).ready(function() {
tinyMCE.init({
mode: 'textareas',
theme: 'advanced'
});
});
After performing these actions on this element of the body (text area) there was a fully functioning editor on it.
source
share