diff options
author | George Claghorn <george.claghorn@gmail.com> | 2019-02-22 00:22:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-22 00:22:23 -0500 |
commit | cc1a5d5620c4cd952b27f6c1bbd16d8780a34d0e (patch) | |
tree | 72c21150ea282e214b4f57c52dafe2f28514a60f /actiontext/app | |
parent | 2083f387350e6493b511cf25b100b01b36f605c8 (diff) | |
parent | b3778c5708f430da968e2a6995741fc082e92156 (diff) | |
download | rails-cc1a5d5620c4cd952b27f6c1bbd16d8780a34d0e.tar.gz rails-cc1a5d5620c4cd952b27f6c1bbd16d8780a34d0e.tar.bz2 rails-cc1a5d5620c4cd952b27f6c1bbd16d8780a34d0e.zip |
Merge pull request #35357 from abhaynikam/35351-allows-rich-text-area-to-have-translated-placeholder
Allows rich_text_area_tag to add translated placeholder text if placeholder option set to true
Diffstat (limited to 'actiontext/app')
-rw-r--r-- | actiontext/app/helpers/action_text/tag_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |