Sha256: 0086acea6d2b0abe45441abb914cec0520a364b468157733acb175bc8052210a
Contents?: true
Size: 719 Bytes
Versions: 4
Compression:
Stored size: 719 Bytes
Contents
if (Object.const_defined?("Formtastic") && Gem.loaded_specs["formtastic"].version.version[0,1] == "2") class RichInput < ::Formtastic::Inputs::TextInput def to_html scope_type = object_name scope_id = object.id editor_options = Rich.options(options[:config], scope_type, scope_id) input_wrapping do label_html << builder.text_area(method, input_html_options) << #javascript_tag("$(function(){$('##{dom_id}').ckeditor(function() { }, #{editor_options.to_json} );});") # doing this might be insecure? "<script>$(function(){$('##{dom_id}').ckeditor(function() { }, #{editor_options.to_json} );});</script>".html_safe end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rich-1.0.3 | app/inputs/rich_input.rb |
rich-1.0.2 | app/inputs/rich_input.rb |
rich-1.0.1 | app/inputs/rich_input.rb |
rich-1.0.0 | app/inputs/rich_input.rb |