Class: Locomotive::Liquid::Tags::Editable::ShortText
Direct Known Subclasses
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #default_element_attributes ⇒ Object
-
#initialize(tag_name, markup, tokens, context) ⇒ ShortText
constructor
A new instance of ShortText.
Methods inherited from Base
Constructor Details
#initialize(tag_name, markup, tokens, context) ⇒ ShortText
Returns a new instance of ShortText.
59 60 61 62 |
# File 'lib/locomotive/liquid/tags/editable/text.rb', line 59 def initialize(tag_name, markup, tokens, context) Rails.logger.warn %(The "editable_<short|long>_text" liquid tags are deprecated. Use "editable_text" instead.) super end |
Instance Method Details
#default_element_attributes ⇒ Object
63 64 65 |
# File 'lib/locomotive/liquid/tags/editable/text.rb', line 63 def default_element_attributes super.merge(format: 'raw', rows: 2, line_break: false) end |