Sha256: 3a9657b778ba4c7b450840d1e1034130d85d6891fdad183a06df8082caec4f89

Contents?: true

Size: 866 Bytes

Versions: 1

Compression:

Stored size: 866 Bytes

Contents

<% content_for :script do %>
  <%= javascript_include_tag "tinymce/jquery.tinymce" %>
  <script>
    function load_tinymce(){
      $("textarea").tinymce({
        script_url: "/javascripts/tinymce/tiny_mce.js",
        theme: "advanced",
        skin: "cirkuit",
        mode: "textareas",
        theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,formatselect,|,link,unlink,image,code",
        theme_advanced_buttons2 : "",
        theme_advanced_buttons3 : "",
        theme_advanced_toolbar_location: "top",
        theme_advanced_toolbar_align: "left",
        // theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing: true
      });
    }
  </script>
<% end %>

<%= text_area resource_name, field.name %>
<script type="text/javascript">
   $(function(){
      load_tinymce(); 
    })
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lolita-3.0.7 app/views/components/lolita/field/_text.html.erb