Sha256: b50defdcfb342c0541c8d34f475bf830348ab2aa5c1246f21b16726b61c3fc9d

Contents?: true

Size: 613 Bytes

Versions: 5

Compression:

Stored size: 613 Bytes

Contents

<div
  class="content-block"
  contenteditable="true"
  id="<%= content_block.path %>"
  data-update-url="<%= MicroCms::Engine.routes.url_helpers.content_block_path(content_block) %>"
  data-authorization-token="<%= MicroCms.authorization_token %>"
>
  <%= raw content_block.content %>
</div>

<script type="text/javascript" charset="utf-8">
  <% if MicroCms.ckeditor_configuration_file.present? %>
    var config = { customConfig: "<%= asset_path(MicroCms.ckeditor_configuration_file) %>" };
  <% else %>
    var config = undefined;
  <% end %>

  CKEDITOR.inline('<%= content_block.path %>', config);
</script>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
micro_cms-0.2.1 app/views/micro_cms/_content_block.html.erb
micro_cms-0.2.0 app/views/micro_cms/_content_block.html.erb
micro_cms-0.1.2 app/views/micro_cms/_content_block.html.erb
micro_cms-0.1.1 app/views/micro_cms/_content_block.html.erb
micro_cms-0.1.0 app/views/micro_cms/_content_block.html.erb