Class: Alchemy::Ingredients::RichtextEditor

Inherits:
BaseEditor
  • Object
show all
Defined in:
app/components/alchemy/ingredients/richtext_editor.rb

Instance Attribute Summary

Attributes inherited from BaseEditor

#html_options, #ingredient

Instance Method Summary collapse

Methods inherited from BaseEditor

#call, #form_field_id, #form_field_name, #initialize

Constructor Details

This class inherits a constructor from Alchemy::Ingredients::BaseEditor

Instance Method Details

#input_fieldObject



6
7
8
9
10
11
12
13
14
# File 'app/components/alchemy/ingredients/richtext_editor.rb', line 6

def input_field
  ("alchemy-tinymce", tinymce_config) do
    text_area_tag form_field_name,
      value,
      minlength: length_validation&.fetch(:minimum, nil),
      maxlength: length_validation&.fetch(:maximum, nil),
      id: form_field_id(:value)
  end
end