Sha256: 798889c42bd8483b46c590485c152f371d713c33a49e01f95e37b86b57ba8334
Contents?: true
Size: 641 Bytes
Versions: 1
Compression:
Stored size: 641 Bytes
Contents
# frozen_string_literal: true # Tag for text content that is going to be rendered using textarea # {{ cms:textarea identifier }} # class ComfortableMediaSurfer::Content::Tags::Textarea < ComfortableMediaSurfer::Content::Tags::Fragment def form_field(object_name, view, index) name = "#{object_name}[fragments_attributes][#{index}][content]" options = { id: form_field_id, data: { 'cms-cm-mode' => 'text/html' } } input = view.send(:text_area_tag, name, content, options) yield input end end ComfortableMediaSurfer::Content::Renderer.register_tag( :textarea, ComfortableMediaSurfer::Content::Tags::Textarea )
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comfortable_media_surfer-3.0.0 | lib/comfortable_media_surfer/content/tags/textarea.rb |