From b3778c5708f430da968e2a6995741fc082e92156 Mon Sep 17 00:00:00 2001 From: Abhay Nikam Date: Thu, 21 Feb 2019 22:13:57 +0530 Subject: Allows rich_text_area_tag to add I18n translated placeholder text if placeholder option set to true --- actiontext/app/helpers/action_text/tag_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actiontext/app') diff --git a/actiontext/app/helpers/action_text/tag_helper.rb b/actiontext/app/helpers/action_text/tag_helper.rb index 8434f2c611..1dc6202ae1 100644 --- a/actiontext/app/helpers/action_text/tag_helper.rb +++ b/actiontext/app/helpers/action_text/tag_helper.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "action_view/helpers/tags/placeholderable" + module ActionText module TagHelper cattr_accessor(:id, instance_accessor: false) { 0 } @@ -35,6 +37,8 @@ end module ActionView::Helpers class Tags::ActionText < Tags::Base + include Tags::Placeholderable + delegate :dom_id, to: ActionView::RecordIdentifier def render -- cgit v1.2.3