From ac7cda4f65e583bc6fa454485e03132acffad4e1 Mon Sep 17 00:00:00 2001 From: Marko Mihelj Date: Wed, 11 Oct 2017 10:29:53 +0200 Subject: [PATCH] added placeholder --- lib/trix/simple_form/trix_editor_input.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/trix/simple_form/trix_editor_input.rb b/lib/trix/simple_form/trix_editor_input.rb index 3ad37c5d..1d588382 100644 --- a/lib/trix/simple_form/trix_editor_input.rb +++ b/lib/trix/simple_form/trix_editor_input.rb @@ -2,7 +2,7 @@ module Trix module SimpleForm class TrixEditorInput < ::SimpleForm::Inputs::Base def input(_wrapper_options) - editor_tag = template.content_tag('trix-editor', '', input: input_class, class: 'trix-content') + editor_tag = template.content_tag('trix-editor', '', input: input_class, class: 'trix-content', placeholder: input_html_options[:placeholder]) hidden_field = @builder.hidden_field(attribute_name, input_html_options) template.content_tag('div', editor_tag + hidden_field, class: 'trix-editor-wrapper')