From 8eb68adff53432dd2d6ab0530afef185039ec2fc Mon Sep 17 00:00:00 2001 From: Jon Uhlmann Date: Wed, 20 Apr 2022 20:32:11 +0200 Subject: [PATCH] Update: Add data-never-block to the script tag if Sandstorm.CookiePunch is installed --- Resources/Private/Fusion/Editable/Editable.fusion | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Resources/Private/Fusion/Editable/Editable.fusion b/Resources/Private/Fusion/Editable/Editable.fusion index b2485bb..afda203 100644 --- a/Resources/Private/Fusion/Editable/Editable.fusion +++ b/Resources/Private/Fusion/Editable/Editable.fusion @@ -61,6 +61,9 @@ prototype(Carbon.BackendDocument:Editable) < prototype(Neos.Fusion:Component) { id = ${this.property + this.node.identifier + Math.randomInt(0, 10000)} nativeEditor = ${this.type == 'block' || this.type == 'inline'} inBackend = ${this.node.context.inBackend} + // https://github.com/sandstorm/Sandstorm.CookiePunch is installed + sandstormCookiePunchIsInstalled = ${Configuration.setting('Neos.Neos.fusion.autoInclude')['Sandstorm.CookiePunch']} + dataNeverBlock = ${!!this.sandstormCookiePunchIsInstalled} @if.hasNodeAndPropertyAndType = ${this.node && this.property && Type.isString(this.type)} @@ -77,7 +80,7 @@ prototype(Carbon.BackendDocument:Editable) < prototype(Neos.Fusion:Component) { data-slipstream href={StaticResource.uri('Carbon.BackendDocument', 'Public/Editable.css')} /> - +