Sha256: 58b0430f1f9ff5f1e164c0a202d50929ede0b3d4ec7329d550b296289259b800
Contents?: true
Size: 908 Bytes
Versions: 7
Compression:
Stored size: 908 Bytes
Contents
<%= render :partial => 'caboose/posts/admin_header' %> <p><div id='post_<%= @post.id %>_body' ></div></p> <%= render :partial => 'caboose/posts/admin_footer' %> <% content_for :caboose_js do %> <%= javascript_include_tag "caboose/model/all" %> <script type='text/javascript'> $(document).ready(function() { m = new ModelBinder({ name: 'Post', id: <%= @post.id %>, update_url: '/admin/posts/<%= @post.id %>', authenticity_token: '<%= form_authenticity_token %>', attributes: [ { name: 'body', nice_name: 'Body', type: 'richtext', value: <%= raw Caboose.json(@post.body) %>, width: 600, height: 400 } ] }); }); var modal = false; $(window).load(function() { modal = new CabooseModal(800); }); </script> <script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script> <%= tinymce :caboose, 'width' => '575px', 'height' => '240px' %> <% end %>
Version data entries
7 entries across 7 versions & 1 rubygems