소스 검색

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

panr 5 년 전
부모
커밋
9653d1ffad
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  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;
+}