Sha256: a89ac7eea48a92a9b16aa099462687f6b560789be3c58c75d436a38b9870c299
Contents?: true
Size: 969 Bytes
Versions: 2
Compression:
Stored size: 969 Bytes
Contents
module Effective module FormBuilderInputs class EffectiveCkeditorTextArea < Effective::FormBuilderInput delegate :content_tag, :text_area_tag, :asset_path, :to => :@template def default_input_js { effective_assets: defined?(EffectiveAssets).present?, effective_ckeditor_js_path: asset_path('effective_ckeditor.js'), effective_ckeditor_css_path: asset_path('effective_ckeditor.css'), contentsCss: ( case options[:contentsCss] when :bootstrap 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' when false nil else options[:contentsCss] || asset_path('application.css') end ), toolbar: options[:toolbar], height: options[:height], width: options[:width] }.compact end def default_input_html {class: 'effective_ckeditor_text_area text'} end def to_html text_area_tag(field_name, value, tag_options) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems