Class: ActionText::Editor::TrixEditor::Tag
- Inherits:
-
ActionText::Editor::Tag
- Object
- ActionText::Editor::Tag
- ActionText::Editor::TrixEditor::Tag
- Defined in:
- actiontext/lib/action_text/editor/trix_editor.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from ActionText::Editor::Tag
Instance Method Summary collapse
Methods inherited from ActionText::Editor::Tag
Constructor Details
This class inherits a constructor from ActionText::Editor::Tag
Instance Method Details
#render_in(view_context) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'actiontext/lib/action_text/editor/trix_editor.rb', line 30 def render_in(view_context, ...) name = .delete(:name) form = .delete(:form) value = .delete(:value) [:input] ||= [:id] ? "#{options[:id]}_#{editor_name}_input_#{name.to_s.gsub(/\[.*\]/, "")}" : "#{editor_name}_input_#{self.class.id += 1}" input_tag = view_context.hidden_field_tag(name, value, id: [:input], form: form) input_tag + super end |