From 0d7cdda0df0ee3768b1f9395f9b742ef0171eb43 Mon Sep 17 00:00:00 2001 From: panr Date: Tue, 21 Apr 2020 13:06:04 +0200 Subject: [PATCH 1/2] Add support for text alignment in the table header based on the editor `dir` attribute. --- theme/table.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/theme/table.css b/theme/table.css index 1a3b0ade..74a22daa 100644 --- a/theme/table.css +++ b/theme/table.css @@ -39,3 +39,14 @@ } } } + +/* Text alignment of the table header should match the editor settings and override the native browser styling, +when content is available outside the ediitor. +See https://github.com/ckeditor/ckeditor5/issues/6638 */ +.ck-content[dir="rtl"] .table th { + text-align: right; +} + +.ck-content[dir="ltr"] .table th { + text-align: left; +} From 164782b266afd642c3f74e6f009da7a41f615cd4 Mon Sep 17 00:00:00 2001 From: Aleksander Nowodzinski Date: Wed, 22 Apr 2020 09:30:36 +0200 Subject: [PATCH 2/2] Code style. --- theme/table.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/theme/table.css b/theme/table.css index 74a22daa..0a5c9e5b 100644 --- a/theme/table.css +++ b/theme/table.css @@ -41,8 +41,7 @@ } /* Text alignment of the table header should match the editor settings and override the native browser styling, -when content is available outside the ediitor. -See https://github.com/ckeditor/ckeditor5/issues/6638 */ +when content is available outside the ediitor. See https://github.com/ckeditor/ckeditor5/issues/6638 */ .ck-content[dir="rtl"] .table th { text-align: right; }