Skip to content

Commit 43c502d

Browse files
committed
BUGFIX: Resolve issue in Neos 9.1 inline editing by adjusting button template
This also makes the button a bit easier to edit.
1 parent 490b6da commit 43c502d

File tree

1 file changed

+11
-9
lines changed
  • DistributionPackages/Neos.NeosIo/Resources/Private/Templates/NodeTypes

1 file changed

+11
-9
lines changed

DistributionPackages/Neos.NeosIo/Resources/Private/Templates/NodeTypes/Button.html

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@
3333
</f:section>
3434

3535
<f:section name="buttonInner">
36-
<f:if condition="{neos:rendering.inBackend()}">
37-
<!-- Hint: Buttons might still contain links (old content); and this breaks the element in the frontend -- that is why we need to strip tags in FE. -->
38-
<f:then>
39-
<neos:contentElement.editable property="buttonLabel" class="btn__content" />
40-
</f:then>
41-
<f:else>
42-
<div class="btn__content">{buttonLabel -> f:format.stripTags()}</div>
43-
</f:else>
44-
</f:if>
36+
<div class="btn__content">
37+
<f:if condition="{neos:rendering.inBackend()}">
38+
<!-- Hint: Buttons might still contain links (old content); and this breaks the element in the frontend -- that is why we need to strip tags in FE. -->
39+
<f:then>
40+
<neos:contentElement.editable property="buttonLabel" tag="span" />
41+
</f:then>
42+
<f:else>
43+
{buttonLabel -> f:format.stripTags()}
44+
</f:else>
45+
</f:if>
46+
</div>
4547
</f:section>

0 commit comments

Comments
 (0)