aboutsummaryrefslogtreecommitdiffstats
path: root/actiontext/app
diff options
context:
space:
mode:
authorGeorge Claghorn <george.claghorn@gmail.com>2019-02-22 00:22:23 -0500
committerGitHub <noreply@github.com>2019-02-22 00:22:23 -0500
commitcc1a5d5620c4cd952b27f6c1bbd16d8780a34d0e (patch)
tree72c21150ea282e214b4f57c52dafe2f28514a60f /actiontext/app
parent2083f387350e6493b511cf25b100b01b36f605c8 (diff)
parentb3778c5708f430da968e2a6995741fc082e92156 (diff)
downloadrails-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.rb4
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