Sha256: 4d9b197f7535299a3320c32f9c0ddc00d0c9fb74ca24fc9a378e84ed7e94406a

Contents?: true

Size: 376 Bytes

Versions: 6

Compression:

Stored size: 376 Bytes

Contents

= render 'forms/inputs/form_field', :form => form, :field => field
- field_id = form_field_id(form, field)

= javascript_include_tag "rich/base.js"
:javascript
  var instance = CKEDITOR.instances['#{field_id}'];
  if(instance) { CKEDITOR.remove(instance); }
  CKEDITOR.replace('#{field_id}', #{Rich.options(field.config, field.scope_type, field.scope_id).to_json.html_safe});

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
basepack-1.0.1 app/views/forms/edit/_form_rich_text.html.haml
basepack-1.0.0 app/views/forms/edit/_form_rich_text.html.haml
basepack-1.0.0.pre.0 app/views/forms/edit/_form_rich_text.html.haml
basepack-0.2.0 app/views/forms/edit/_form_rich_text.html.haml
basepack-0.1.0 app/views/forms/edit/_form_rich_text.html.haml
basepack-0.0.2 app/views/forms/edit/_form_rich_text.html.haml