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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 (() – 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(
|
||||
|
||||
Reference in New Issue
Block a user