RTE Containers/Code style doesn't work #17225
Labels
release/13.6.0
state/sprint-candidate
We're trying to get this in a sprint at HQ in the next few weeks
type/bug
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
13.5.1
Bug summary
When you select the Code "Container" from the dropdown in the RTE (see screenshot), the styling is initially applied but removed again when saving.
Specifics
The code should be surrounded by the
<code></code>
block, but it isn't.The cause is that
<code>
element isn't added as valid HTML element in RTE configurationSteps to reproduce
Containers/Code
as shown on the above screenshot.<p></p>
instead of<p><code></code></p>
.<p></p>
, so code style won't be applied.Expected result / actual result
Code text should be surrounded by
<p><code></code></p>
. To make it works we should add thecode
into valid elements here.There is a simple workaround for that issue. You can add the
<code>
html element as valid through the RTE custom configuration by extending appsettings.json:This item has been added to our backlog AB#47421
The text was updated successfully, but these errors were encountered: