Verified Commit 70240aba authored by Alex Pott's avatar Alex Pott
Browse files

fix: #3384819 Can't add class attribute to hr

By: cobasa
By: jwilson3
By: jacobupal
By: smustgrave
parent adb99006
Loading
Loading
Loading
Loading
−1
Changes for core/modules/ckeditor5/src/Plugin/Validation/Constraint/StyleSensibleElementConstraintValidator.php: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -43,7 +43,6 @@ class StyleSensibleElementConstraintValidator extends ConstraintValidator implem
    '<applet>',
    '<basefont>',
    '<isindex>',
    '<hr>',
    '<br>',
    '<area>',
    '<command>',
+21
Changes for core/modules/ckeditor5/tests/src/Kernel/ValidatorsTest.php: 21 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -515,6 +515,27 @@ public static function provider(): array {
        'settings.plugins.ckeditor5_style.styles.1.element' => 'The <code>&lt;br&gt;</code> tag is not yet supported by the Style plugin.',
      ],
    ];
    $data['VALID: Style plugin configured to add class to <hr>'] = [
      'ckeditor5_settings' => [
        'toolbar' => [
          'items' => [
            'horizontalLine',
            'style',
          ],
        ],
        'plugins' => [
          'ckeditor5_style' => [
            'styles' => [
              [
                'label' => 'Fancy rule',
                'element' => '<hr class="fancy">',
              ],
            ],
          ],
        ],
      ],
      'expected_violations' => [],
    ];
    $data['INVALID: Style plugin has multiple styles with same label'] = [
      'ckeditor5_settings' => [
        'toolbar' => [