Sha256: 7f956ba9add4985cc5f473be4c06fd7c0fa43950ff1ad8c249cb9c47232c968e
Contents?: true
Size: 1.32 KB
Versions: 7
Compression:
Stored size: 1.32 KB
Contents
InlineForms::SPECIAL_COLUMN_TYPES[:text_area]=:text def text_area_show(object, attribute) if defined? Ckeditor link_to_inline_edit object, attribute, '<div class="ckeditor_area">'.html_safe + ckeditor_textarea( object.class, attribute, :value => object[attribute], :id => "textarea_#{object.class.name.underscore}_#{object.id}_#{attribute.to_s}", :width => '100%', :ckeditor_options => { :height => '200px', :toolbar => "None", :readOnly => "true", :resize_enabled => "false", :toolbarCanCollapse => "false" } ) + '<img class="glass_plate" src="images/glass_plate.gif" />'.html_safe + '</div>'.html_safe else link_to_inline_edit object, attribute, object[attribute] end end def text_area_edit(object, attribute) if defined? Ckeditor ckeditor_textarea( object.class, attribute, :value => object[attribute], :id => "textarea_#{object.class.name.underscore}_#{object.id}_#{attribute.to_s}", :width => '100%', :height => '200px', :name => attribute ) else text_area_tag attribute, object[attribute], :class => 'attribute_text_area' end end def text_area_update(object, attribute) object[attribute.to_sym] = params[attribute.to_sym] end
Version data entries
7 entries across 7 versions & 1 rubygems