8
0
Просмотр исходного кода

Fixed: Style attribute not rendered correctly when plain string.

Aleksander Nowodzinski 9 лет назад
Родитель
Сommit
a011128604
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/ckeditor5-ui/src/template.js

+ 2 - 2
packages/ckeditor5-ui/src/template.js

@@ -424,8 +424,8 @@ export default class Template {
 			//			width: '100px',
 			//			height: Template.bind( ... ).to( ... )
 			//		}
-			else if ( attrName == 'style' ) {
-				this._renderStyleAttribute( attrValue[ 0 ].value || attrValue[ 0 ], el );
+			else if ( attrName == 'style' && typeof attrValue[ 0 ] !== 'string' ) {
+				this._renderStyleAttribute( attrValue[ 0 ], el );
 			}
 
 			// Otherwise simply set the static attribute.