Fixed alignment support for headline tags
authorMarcel Werk <burntime@woltlab.com>
Thu, 26 Jan 2017 17:40:28 +0000 (18:40 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 26 Jan 2017 17:40:28 +0000 (18:40 +0100)
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php

index 58f1bee919b525ddea1c7be7300ef2141585803b..f0c891eb9b03c8b79f1bdbc0eb8de728c6cf9021 100644 (file)
@@ -22,6 +22,9 @@ class HtmlInputNodeProcessor extends AbstractHtmlNodeProcessor {
         * @var array<array>
         */
        public static $allowedClassNames = [
+               'h2' => ['text-center', 'text-justify', 'text-right'],
+               'h3' => ['text-center', 'text-justify', 'text-right'],
+               'h4' => ['text-center', 'text-justify', 'text-right'],
                'img' => [
                        // float left/right
                        'messageFloatObjectLeft', 'messageFloatObjectRight',