Sha256: 552be76daa7c548f619435b63f778fdde9893eaeebccb4380a73f6b08c348b45
Contents?: true
Size: 662 Bytes
Versions: 1
Compression:
Stored size: 662 Bytes
Contents
# frozen_string_literal: true # Tag for text content that is going to be rendered using Redactor (default) in # the admin area # {{ cms:wysiwyg identifier }} # # class ComfortableMediaSurfer::Content::Tags::Wysiwyg < 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-rich-text' => true } } input = view.send(:text_area_tag, name, content, options) yield input end end ComfortableMediaSurfer::Content::Renderer.register_tag( :wysiwyg, ComfortableMediaSurfer::Content::Tags::Wysiwyg )
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comfortable_media_surfer-3.0.0 | lib/comfortable_media_surfer/content/tags/wysiwyg.rb |