Sha256: 75cf1f52d9a7a63faa5a46401657e51e462411676a4e8f60e31be853702f827f
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 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' %> <%= javascript_include_tag 'jquery-1.7', 'mercury' %> </head> <body> <script type="text/javascript"> // Mix in configurations provided through Rails.application.config.mercury_config (for cucumber testing) <% if Rails.application.config.respond_to?(:mercury_config) %> jQuery.extend(Mercury.config, <%= Rails.application.config.mercury_config.to_json.html_safe %>); <% end -%> // Set to the url that you want to save any given page to, leave null for default handling. var saveUrl = null; // Instantiate the PageEditor new Mercury.PageEditor(saveUrl, { saveStyle: null, // 'form', or 'json' (default json) saveMethod: null, // 'PUT', or 'POST', (create, vs. update -- default PUT) visible: true // boolean - if the interface should start visible or not }); </script> </body> </html>
Version data entries
3 entries across 3 versions & 2 rubygems