Class: Alchemy::Ingredients::RichtextEditor
- Inherits:
-
BaseEditor
- Object
- ViewComponent::Base
- BaseEditor
- Alchemy::Ingredients::RichtextEditor
- Defined in:
- app/components/alchemy/ingredients/richtext_editor.rb
Instance Attribute Summary
Attributes inherited from BaseEditor
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_field ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/components/alchemy/ingredients/richtext_editor.rb', line 6 def input_field content_tag("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 |