Sha256: 481187fef27470b89d0e1f44f05199546721ff2a5cd6415c314711d8f828e292
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
<%# name: headmin/fields/ckeditor accepts block: no parameters: form: Form object attribute: (string) Name of the attribute of the form model label: (bool) Label will not be displayed if value is false class: (string) Space-separated string of html class names toolbar: (Array[]) Array contanining the toolbar items to display upload_path: (string) URL to upload images to %> <% label = local_assigns.has_key?(:label) ? label : true %> <% required = local_assigns.has_key?(:required) ? required : false %> <% class_names = local_assigns.has_key?(:class) ? local_assigns[:class] : false %> <% toolbar = local_assigns.has_key?(:toolbar) ? toolbar : nil %> <% upload_path = local_assigns.has_key?(:upload_path) ? upload_path : admin_wysiwyg_upload_path %> <%= render 'headmin/forms/fields/textarea', form: form, attribute: :content, required: required, class: "ckeditor #{class_names}", label: label, data: { 'ckeditor-toolbar': toolbar, 'ckeditor-upload-path': upload_path } %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
headmin-0.1.2 | app/views/headmin/forms/fields/_ckeditor.html.erb |
headmin-0.1.1 | app/views/headmin/forms/fields/_ckeditor.html.erb |