Sha256: 52ee0bd8ef46feae70b4285c16edde4cab01dc8ffa674390c4d380f42e2f1904

Contents?: true

Size: 878 Bytes

Versions: 12

Compression:

Stored size: 878 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: [['Source', '-', 'Bold', 'Italic', 'Underline', '-', 'NumberedList', 'BulletedList', '-', 'Undo', 'Redo', '-', 'Maximize']] };
      $(".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

12 entries across 12 versions & 1 rubygems

Version Path
typus-3.1.10 app/views/admin/templates/_text_with_ckeditor.html.erb
typus-3.1.9 app/views/admin/templates/_text_with_ckeditor.html.erb
typus-3.1.8 app/views/admin/templates/_text_with_ckeditor.html.erb
typus-3.1.7 app/views/admin/templates/_text_with_ckeditor.html.erb
typus-3.1.6 app/views/admin/templates/_text_with_ckeditor.html.erb
typus-3.1.5 app/views/admin/templates/_text_with_ckeditor.html.erb
typus-3.1.4 app/views/admin/templates/_text_with_ckeditor.html.erb
typus-3.1.3 app/views/admin/templates/_text_with_ckeditor.html.erb
typus-3.1.2 app/views/admin/templates/_text_with_ckeditor.html.erb
typus-3.1.1 app/views/admin/templates/_text_with_ckeditor.html.erb
typus-3.1.0 app/views/admin/templates/_text_with_ckeditor.html.erb
typus-3.1.0.rc19 app/views/admin/templates/_text_with_ckeditor.html.erb