From 33c8f20c3339f1726e7ad5537adb1433ad8af6ec Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 5 Jun 2018 16:21:04 +0200 Subject: Provide default styling by default --- app/helpers/action_text/tag_helper.rb | 2 ++ 1 file changed, 2 insertions(+) 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") -- cgit v1.2.3