Module: Katalyst::Content::EditorHelper
- Defined in:
- app/helpers/katalyst/content/editor_helper.rb
Instance Method Summary collapse
- #content_editor_rich_text_attributes(attributes = {}) ⇒ Object
-
#prefix_partial_path_with_controller_namespace ⇒ Object
When rendering item forms do not include the controller namespace prefix (katalyst/content).
Instance Method Details
#content_editor_rich_text_attributes(attributes = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/helpers/katalyst/content/editor_helper.rb', line 8 def content_editor_rich_text_attributes(attributes = {}) { data: { direct_upload_url: direct_uploads_url, controller: "content--editor--trix", action: "trix-initialize->content--editor--trix#trixInitialize", }, }.merge_html(attributes) end |
#prefix_partial_path_with_controller_namespace ⇒ Object
When rendering item forms do not include the controller namespace prefix (katalyst/content)
19 20 21 |
# File 'app/helpers/katalyst/content/editor_helper.rb', line 19 def prefix_partial_path_with_controller_namespace false end |