Fix inherited bold weight in rich-text editor and entity display in backend list

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Claude Fable 5
2026-08-22 09:57:03 +02:00
parent a573321c1c
commit 43e155bb72
2 changed files with 11 additions and 1 deletions
+9
View File
@@ -1349,3 +1349,12 @@
.survey-shell .ql-editor i {
font-style: italic;
}
/* Der Editor erbt sonst das font-weight 600 des umgebenden Labels Text wirkt dann immer fett. */
.survey-shell .survey-label .survey-rich-editor,
.survey-shell .ql-editor,
.survey-shell .ql-editor p,
.survey-shell .ql-editor li {
font-weight: 400;
font-style: normal;
}
+2 -1
View File
@@ -511,7 +511,8 @@ final class SurveyDcaListener
{
$surveyId = (int) ($row['pid'] ?? 0);
$entry = $this->resolveOutlineEntry($surveyId, (int) ($row['id'] ?? 0));
$title = htmlspecialchars(trim((string) ($row['question'] ?? '')), ENT_QUOTES);
// Contao speichert z. B. Klammern als Entities (&#40;) erst dekodieren, dann sauber escapen.
$title = htmlspecialchars(html_entity_decode(trim((string) ($row['question'] ?? '')), ENT_QUOTES | ENT_HTML5, 'UTF-8'), ENT_QUOTES);
if (SurveyQuestionRepository::isSection($row)) {
return sprintf(