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