Sha256: 3bd013ba6e85ee3f48dc2a6fe6e049d9ddf1d6a60f309e41bd9f37c4c1ee6081

Contents?: true

Size: 551 Bytes

Versions: 6

Compression:

Stored size: 551 Bytes

Contents

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

<% content_for :head do %>
  <script>
    const _json = <%== render template: 'locomotive/page_content/edit.json.jbuilder' %>;

    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 %>;

  </script>

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotivecms-4.0.3 app/views/locomotive/page_content/edit.html.erb
locomotivecms-4.0.2 app/views/locomotive/page_content/edit.html.erb
locomotivecms-4.0.1 app/views/locomotive/page_content/edit.html.erb
locomotivecms-4.0.0 app/views/locomotive/page_content/edit.html.erb
locomotivecms-4.0.0.rc0 app/views/locomotive/page_content/edit.html.erb
locomotivecms-4.0.0.alpha3 app/views/locomotive/page_content/edit.html.erb