Sha256: 723d1c747ecf7444394940e11b049414a387081630d7bd16e10693195b64d2e2
Contents?: true
Size: 832 Bytes
Versions: 2
Compression:
Stored size: 832 Bytes
Contents
module Scrivito module EditingHelper def include_editing_stylesheet if inplace_editing_allowed? stylesheet_link_tag :scrivito_editing end end def widget_reset_stylesheet stylesheet = '*[data-scrivito-field-type="widget"],' \ ' *[data-scrivito-private-widget-id] { position: relative; }' content_tag(:style, stylesheet, {type: 'text/css'}, false) end def include_editing_javascript render 'scrivito/editing_javascript' if inplace_editing_allowed? end def scrivito_client_config client_config = ClientConfig.new(@obj, cms_editing_context, lookup_context) if @scrivito_open_details_page client_config.open_resource_dialog(@scrivito_binary_id, @scrivito_return_to); end client_config.to_json.html_safe end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scrivito_sdk-0.16.0 | app/helpers/scrivito/editing_helper.rb |
scrivito_sdk-0.15.0 | app/helpers/scrivito/editing_helper.rb |