Sha256: 69ad5000da1d0827690dfb778bb4512a28ba4b06ca407b0e2ea742311919a346

Contents?: true

Size: 756 Bytes

Versions: 144

Compression:

Stored size: 756 Bytes

Contents

<%= render :partial => 'caboose/posts/admin_header' %>
    
<p><div id='post_<%= @post.id %>_preview'   ></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: 'preview'   , nice_name: 'Preview'   , type: 'richtext'  , value: <%= raw Caboose.json(@post.preview    )        %>, width: 600, height: 400 }                  
    ]
  });
});

</script>
<%= raw caboose_tinymce %>      
<% end %>

Version data entries

144 entries across 144 versions & 1 rubygems

Version Path
caboose-cms-0.9.90 app/views/caboose/posts/admin_edit_preview.html.erb
caboose-cms-0.9.89 app/views/caboose/posts/admin_edit_preview.html.erb
caboose-cms-0.9.88 app/views/caboose/posts/admin_edit_preview.html.erb
caboose-cms-0.9.87 app/views/caboose/posts/admin_edit_preview.html.erb