Module: Katalyst::Content::EditorHelper

Includes:
TableHelper
Defined in:
app/helpers/katalyst/content/editor_helper.rb

Instance Method Summary collapse

Methods included from TableHelper

#normalize_content_table, #sanitize_content_table

Instance Method Details

#content_editor_rich_text_attributes(attributes = {}) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'app/helpers/katalyst/content/editor_helper.rb', line 10

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