8
0
Piotrek Koszuliński 5 лет назад
Родитель
Сommit
a6dcac1392

+ 1 - 1
packages/ckeditor5-html-embed/src/htmlembedediting.js

@@ -148,7 +148,7 @@ export default class HtmlEmbedEditing extends Plugin {
 				const textareaAttributes = {
 					placeholder,
 					disabled: true,
-					class: 'ck ck-input ck-input-text raw-html-embed__source'
+					class: 'ck ck-reset ck-input ck-input-text raw-html-embed__source'
 				};
 
 				// The editing raw HTML field.

+ 5 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-html-embed/htmlembed.css

@@ -44,6 +44,11 @@
 		min-width: 0;
 		padding: var(--ck-spacing-standard);
 
+		font-family: monospace;
+		tab-size: 4;
+		white-space: pre-wrap;
+		font-size: var(--ck-font-size-base); /* Safari needs this. */
+
 		&[disabled] {
 			background: hsl(0deg 0% 97%);
 			color: hsl(0deg 0% 56%);