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')