Browse Source

Fixed the code block appeareance in RTL content. Fixed the long code overflow issue.

Aleksander Nowodzinski 6 years ago
parent
commit
ab8a1c533d
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packages/ckeditor5-code-block/theme/codeblock.css

+ 6 - 0
packages/ckeditor5-code-block/theme/codeblock.css

@@ -10,6 +10,12 @@
 	border: 1px solid hsl(0, 0%, 77%);
 	border-radius: 2px;
 
+	/* Code block are language direction–agnostic. */
+	text-align: left;
+	direction: ltr;
+
+	white-space: pre-wrap;
+
 	& code {
 		background: unset;
 		padding: 0;