aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/action_text/tag_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-06-05 16:21:04 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-06-05 16:21:04 +0200
commit33c8f20c3339f1726e7ad5537adb1433ad8af6ec (patch)
treea7095ae497421a886d71223c248aa00e857ce92b /app/helpers/action_text/tag_helper.rb
parente04093386705aa8c00e5162614a9d0122cd31891 (diff)
downloadrails-33c8f20c3339f1726e7ad5537adb1433ad8af6ec.tar.gz
rails-33c8f20c3339f1726e7ad5537adb1433ad8af6ec.tar.bz2
rails-33c8f20c3339f1726e7ad5537adb1433ad8af6ec.zip
Provide default styling by default
Diffstat (limited to 'app/helpers/action_text/tag_helper.rb')
-rw-r--r--app/helpers/action_text/tag_helper.rb2
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")