Sha256: 545f2599dec88f4697e15d21ee113646e8e5bee9a9b2bedad9c6dc3546e0580b
Contents?: true
Size: 779 Bytes
Versions: 20
Compression:
Stored size: 779 Bytes
Contents
module Locomotive module Liquid module Tags module Editable class LongText < ShortText protected def render_element(context, element) content = element.default_content? ? render_default_content(context) : element.content if editable?(context, element) %{ <div class='editable-long-text' data-element-id='#{element.id}' data-element-index='#{element._index}'> #{content} </div> } else content end end def document_type EditableLongText end end ::Liquid::Template.register_tag('editable_long_text', LongText) end end end end
Version data entries
20 entries across 20 versions & 2 rubygems