Browse Source

Add support for text alignment in the table header based on the editor `dir` attribute.

panr 5 years ago
parent
commit
9653d1ffad
1 changed files with 11 additions and 0 deletions
  1. 11 0
      packages/ckeditor5-table/theme/table.css

+ 11 - 0
packages/ckeditor5-table/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;
+}