app/helpers/scrivito/editing_helper.rb in scrivito_sdk-0.14.0 vs app/helpers/scrivito/editing_helper.rb in scrivito_sdk-0.15.0

- old
+ new

@@ -17,10 +17,14 @@ def include_editing_javascript render 'scrivito/editing_javascript' if inplace_editing_allowed? end def scrivito_client_config - ClientConfig.new(@obj, cms_editing_context, lookup_context).to_json.html_safe + 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