Method: Cms::PageHelper#cms_content_editor
- Defined in:
- app/helpers/cms/page_helper.rb
#cms_content_editor ⇒ Array
Return the JS file to load the configured default WYSIWYG editor
Ideally, this could be improved if sprockets allows for dynamically determining which js library to use.
8 9 10 11 12 13 14 |
# File 'app/helpers/cms/page_helper.rb', line 8 def cms_content_editor if Cms.content_editor.is_a?(Array) Cms.content_editor else "bcms/#{Cms.content_editor}" # Handles existing FCKEditor behavior end end |