Sha256: dbabcd057628f96b4eb188bd76cffc4b53db498f8023c48a28fb2ffc007a391d
Contents?: true
Size: 598 Bytes
Versions: 6
Compression:
Stored size: 598 Bytes
Contents
= javascript_include_tag "rich/base.js" = form.send field.view_helper, field.method_name, field.html_attributes = link_to t('picker_browse').capitalize, Rich.editor[:richBrowserUrl], :class => "btn create" - unless field.value.to_s.html_safe == '' %br %br %img{:src => field.value.html_safe, :style => 'height: 100px', :class => 'rich-image-preview'} = javascript_tag do $(function(){$('##{form.dom_id(field)}_field a').click(function(e){ e.preventDefault(); assetPicker.showFinder('##{form.dom_id(field)}', #{Rich.options(field.config, field.scope_type, field.scope_id).to_json.html_safe})})})
Version data entries
6 entries across 6 versions & 1 rubygems