From f4714e7dc000e768dc88176410782bbc6e5346c2 Mon Sep 17 00:00:00 2001 From: Lucas C Date: Mon, 12 Feb 2024 16:55:15 +0100 Subject: [PATCH] XWIKI-21773: Admin section: make the WYSIWYG section pass webstandard tests (#2794) * Fixed the input labels * Removed the comment from the test for WYSIWYG * Replaced the hard coded number value with a more robust computed one. --- .../src/main/resources/CKEditor/VelocityMacros.xml | 2 +- .../xwiki-platform-distribution-flavor-test/pom.xml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-ui/src/main/resources/CKEditor/VelocityMacros.xml b/xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-ui/src/main/resources/CKEditor/VelocityMacros.xml index d934fdae1974..b88229697122 100644 --- a/xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-ui/src/main/resources/CKEditor/VelocityMacros.xml +++ b/xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-ui/src/main/resources/CKEditor/VelocityMacros.xml @@ -218,7 +218,7 @@ #macro (displayCKEditorConfigProperty $configDoc $propName $action) <dt> - <label>$configDoc.displayPrettyName($propName)</label> + <label for="CKEditor.ConfigClass_$escapetool.xml($configDoc.getObject("CKEditor.ConfigClass").getNumber())_${propName}">$configDoc.displayPrettyName($propName)</label> <span class="xHint">$escapetool.xml($services.localization.render("CKEditor.ConfigClass_${propName}.hint"))</span> </dt> <dd>#displayCKEditorConfigPropertyValue($configDoc $propName $action)</dd> diff --git a/xwiki-platform-distribution/xwiki-platform-distribution-flavor/xwiki-platform-distribution-flavor-test/pom.xml b/xwiki-platform-distribution/xwiki-platform-distribution-flavor/xwiki-platform-distribution-flavor-test/pom.xml index e9c4d8602b16..ff4b6bfe541b 100644 --- a/xwiki-platform-distribution/xwiki-platform-distribution-flavor/xwiki-platform-distribution-flavor-test/pom.xml +++ b/xwiki-platform-distribution/xwiki-platform-distribution-flavor/xwiki-platform-distribution-flavor-test/pom.xml @@ -281,8 +281,7 @@ /xwiki/bin/admin/XWiki/XWikiPreferences?editor=globaladmin&section=Delete /xwiki/bin/admin/XWiki/XWikiPreferences?editor=globaladmin&section=Editing - + /xwiki/bin/admin/XWiki/XWikiPreferences?editor=globaladmin&section=WYSIWYG /xwiki/bin/admin/XWiki/XWikiPreferences?editor=globaladmin&section=Syntaxes /xwiki/bin/admin/XWiki/XWikiPreferences?editor=globaladmin&section=nameStrategies /xwiki/bin/admin/XWiki/XWikiPreferences?editor=globaladmin&section=SyntaxHighlighting