Sha256: cc2b29f8757116568d66dc9b4463abeeafd8eac08c76adc428bbe4b17c24abfc

Contents?: true

Size: 1.43 KB

Versions: 29

Compression:

Stored size: 1.43 KB

Contents

<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="width=device-width, maximum-scale=1.0, initial-scale=1.0">
    <%= csrf_meta_tags %>
    <title>Mercury Editor</title>
    <%= stylesheet_link_tag    'mercury', 'mercury_overrides' %>
    <%= javascript_include_tag 'mercury', 'mercury_overrides' %>
  </head>
  <body>
    <script type="text/javascript">
      var saveUrl = null; // Set to the url that you want to save any given page to.
      var options = {
        saveStyle: null,  // 'form', or 'json' (default json)
        saveMethod: null, // 'POST', or 'PUT', (create, vs. update -- default POST)
        visible: null     // if the interface should start visible or not (default true)
      };

      <!-- Mix in any configurations provided through Rails.application.config.mercury_config -->
      <% if Rails.application.config.respond_to?(:mercury_config) %>
        jQuery.extend(Mercury.config, <%= Rails.application.config.mercury_config.to_json.html_safe %>);
      <% end -%>

      <!-- Mix in any options for PageEditor provided through Rails.application.config.mercury_page_editor_config -->
      <% if Rails.application.config.respond_to?(:mercury_page_editor_config) %>
        jQuery.extend(options, <%= Rails.application.config.mercury_page_editor_config.to_json.html_safe %>);
      <% end -%>

      <!-- Instantiate the PageEditor -->
      new Mercury.PageEditor(saveUrl, options);
    </script>
  </body>
</html>

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
kiteditor-1.0.25 app/views/layouts/mercury.html.erb
kiteditor-1.0.24 app/views/layouts/mercury.html.erb
kiteditor-1.0.23 app/views/layouts/mercury.html.erb
kiteditor-1.0.22 app/views/layouts/mercury.html.erb
kiteditor-1.0.21 app/views/layouts/mercury.html.erb
kiteditor-1.0.20 app/views/layouts/mercury.html.erb
kiteditor-1.0.19 app/views/layouts/mercury.html.erb
kiteditor-1.0.18 app/views/layouts/mercury.html.erb
kiteditor-1.0.17 app/views/layouts/mercury.html.erb
kiteditor-1.0.16 app/views/layouts/mercury.html.erb
kiteditor-1.0.14 app/views/layouts/mercury.html.erb
kiteditor-1.0.13 app/views/layouts/mercury.html.erb
kiteditor-1.0.11 app/views/layouts/mercury.html.erb
kiteditor-1.0.10 app/views/layouts/mercury.html.erb
kiteditor-1.0.9 app/views/layouts/mercury.html.erb
kiteditor-1.0.8 app/views/layouts/mercury.html.erb
kiteditor-1.0.7 app/views/layouts/mercury.html.erb
kiteditor-1.0.6 app/views/layouts/mercury.html.erb
kiteditor-1.0.5 app/views/layouts/mercury.html.erb
kiteditor-1.0.4 app/views/layouts/mercury.html.erb