Sha256: 8cf0c4015deb058f6114b2835b01c2969ff7e31b2da31a42ce08079cc1df0cb9

Contents?: true

Size: 864 Bytes

Versions: 4

Compression:

Stored size: 864 Bytes

Contents

<% content_for :javascripts do %>
  <script type="text/javascript">
    var CKEDITOR_BASEPATH = '/assets/ckeditor/';
  </script>

  <%= javascript_include_tag 'ckeditor/ckeditor' %>
  <%= javascript_include_tag 'ckeditor/adapters/jquery' %>

  <script type="text/javascript">
    $(document).ready(function() {
      // var config = { toolbar: 'Basic', };
      // var config = { toolbar: 'Full', };
      var config = { toolbar: [['Bold', 'Italic', 'Underline', '-', 'NumberedList', 'BulletedList', '-', 'Undo', 'Redo', '-', 'SelectAll']] };
      $(".rich_text").ckeditor(config);
    });
  </script>
<% end %>

<%
  custom = { :rows => @resource.typus_options_for(:form_rows), :class => "rich_text" }
  options = options.merge!(custom)
%>

<li id="<%= attribute_id %>">
  <%= form.label attribute, label_text %>
  <%= form.text_area attribute, options %>
</li>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
typus-3.1.0.rc18 app/views/admin/templates/_text_with_ckeditor.html.erb
typus-3.1.0.rc17 app/views/admin/templates/_text_with_ckeditor.html.erb
typus-3.1.0.rc16 app/views/admin/templates/_text_with_ckeditor.html.erb
typus-3.1.0.rc15 app/views/admin/templates/_text_with_ckeditor.html.erb