Class: ActionText::Editor::TrixEditor::Tag
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
|
Instance Chain:
|
|
| Inherits: |
ActionText::Editor::Tag
|
| Defined in: | actiontext/lib/action_text/editor/trix_editor.rb |
Class Attribute Summary
::ActionText::Editor::Tag - Inherited
Class Method Summary
::ActionText::Editor::Tag - Inherited
Instance Attribute Summary
::ActionText::Editor::Tag - Inherited
Instance Method Summary
Constructor Details
This class inherits a constructor from ActionText::Editor::Tag
Instance Method Details
#render_in(view_context)
[ GitHub ]# 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) value = view_context.capture(&@block) if @block && value.nil? [:class] ||= "#{editor_name}-content" [:input] ||= [:id] ? "#{[: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 + view_context.content_tag(element_name, nil, ) end