Sha256: 3386ed5946767cbc2eb24b41b9e1b6d953bf58c6951c63057d72e8d95bb7be9a
Contents?: true
Size: 971 Bytes
Versions: 218
Compression:
Stored size: 971 Bytes
Contents
<div id='pageblock_<%= @block.id %>_value'></div> <% content_for :caboose_js do %> <%= javascript_include_tag "caboose/model/all" %> <script type='text/javascript'> var modal = false; $(window).load(function() { modal = new CabooseModal(800); }); $(document).ready(function() { m = new ModelBinder({ name: 'PageBlock', id: <%= @block.id %>, update_url: '/admin/pages/<%= @page.id %>/blocks/<%= @block.id %>', authenticity_token: '<%= form_authenticity_token %>', attributes: [{ name: 'value', nice_name: 'Content', type: 'richtext', value: <%= raw Caboose.json(@block.value) %>, width: 800, fixed_placeholder: false, after_update: function() { parent.controller.render_blocks(); modal.close(); }, after_cancel: function() { parent.controller.render_blocks(); modal.close(); } }] }); }); </script> <%= tinymce_assets %> <%= tinymce :caboose, width: '800px', height:'300px' %> <% end %>
Version data entries
218 entries across 218 versions & 1 rubygems