Sha256: 58af6dba9158050e49bc82691150778f323078ac822282c8693ae7d0a830e3cf

Contents?: true

Size: 810 Bytes

Versions: 34

Compression:

Stored size: 810 Bytes

Contents

<%= render :partial => 'caboose/pages/admin_header' %>

<p><div id='page_<%= @page.id %>_content'></div></p>

<%= render :partial => 'caboose/pages/admin_footer' %>
<% content_for :caboose_js do %>
<script type='text/javascript'>

var modal = false;
$(window).load(function() {
  modal = new CabooseModal(800);
});

$(document).ready(function() {
  m = new ModelBinder({
    name: 'Page',
    id: <%= @page.id %>,
    update_url: '/admin/pages/<%= @page.id %>',
    authenticity_token: '<%= form_authenticity_token %>',
    attributes: [
      { name: 'content', nice_name: 'Page Content', type: 'richtext', value: <%= raw Caboose.json(@page.content) %>, width: 800, height: 500 }             
    ]
  });
});

</script>
<%= tinymce_assets %>
<%= tinymce :caboose, width: '800px', height:'400px' %>
<% end %>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
caboose-cms-0.2.83 app/views/caboose/pages/admin_edit_content.html.erb
caboose-cms-0.2.82 app/views/caboose/pages/admin_edit_content.html.erb
caboose-cms-0.2.81 app/views/caboose/pages/admin_edit_content.html.erb
caboose-cms-0.2.80 app/views/caboose/pages/admin_edit_content.html.erb
caboose-cms-0.2.79 app/views/caboose/pages/admin_edit_content.html.erb
caboose-cms-0.2.78 app/views/caboose/pages/admin_edit_content.html.erb
caboose-cms-0.2.71 app/views/caboose/pages/admin_edit_content.html.erb
caboose-cms-0.2.70 app/views/caboose/pages/admin_edit_content.html.erb
caboose-cms-0.2.68 app/views/caboose/pages/admin_edit_content.html.erb
caboose-cms-0.2.67 app/views/caboose/pages/admin_edit_content.html.erb
caboose-cms-0.2.66 app/views/caboose/pages/admin_edit_content.html.erb
caboose-cms-0.2.65 app/views/caboose/pages/admin_edit_content.html.erb
caboose-cms-0.2.64 app/views/caboose/pages/admin_edit_content.html.erb
caboose-cms-0.2.62 app/views/caboose/pages/admin_edit_content.html.erb