Sha256: a5bae9d1b3a071f4b86cfed081716c9dbf434da563e927ce4fbb7194e76ca468

Contents?: true

Size: 651 Bytes

Versions: 2

Compression:

Stored size: 651 Bytes

Contents

 <div id="editor-app"></div>

<% content_for :head do %>
  <script>
    const _json = <%== render partial: 'locomotive/page_content/edit', formats: :json %>;

    window.Locomotive.previewBaseUrl = "<%= preview_path(current_site) %>";

    window.Locomotive.data = _json.data;
    window.Locomotive.urls = _json.urls;

    window.Locomotive.i18n = <%= h I18n.t('locomotive.editor').to_json.html_safe %>;

    window.Locomotive.maximum_uploaded_file_size = <%= current_site.maximum_uploaded_file_size %>;
  </script>

  <%= javascript_include_tag  'locomotive/editor' %>
  <%= stylesheet_link_tag     'locomotive/editor', media: 'screen' %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
locomotivecms-4.2.0.alpha2 app/views/locomotive/page_content/edit.html.erb
locomotivecms-4.2.0.alpha1 app/views/locomotive/page_content/edit.html.erb