app/views/locomotive/page_content/edit.html.erb
<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 %>