diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-06-05 16:21:04 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-06-05 16:21:04 +0200 |
commit | 33c8f20c3339f1726e7ad5537adb1433ad8af6ec (patch) | |
tree | a7095ae497421a886d71223c248aa00e857ce92b | |
parent | e04093386705aa8c00e5162614a9d0122cd31891 (diff) | |
download | rails-33c8f20c3339f1726e7ad5537adb1433ad8af6ec.tar.gz rails-33c8f20c3339f1726e7ad5537adb1433ad8af6ec.tar.bz2 rails-33c8f20c3339f1726e7ad5537adb1433ad8af6ec.zip |
Provide default styling by default
-rw-r--r-- | app/helpers/action_text/tag_helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/helpers/action_text/tag_helper.rb b/app/helpers/action_text/tag_helper.rb index ae52e270a7..72b36b58e3 100644 --- a/app/helpers/action_text/tag_helper.rb +++ b/app/helpers/action_text/tag_helper.rb @@ -6,6 +6,8 @@ module ActionText options = options.symbolize_keys options[:input] ||= "trix_input_#{ActionText::TagHelper.id += 1}" + options[:class] ||= "trix-content" + options[:data] ||= {} options[:data][:direct_upload_url] = rails_direct_uploads_url options[:data][:blob_url_template] = rails_service_blob_url(":signed_id", ":filename") |