Преглед изворни кода

Fixed: Style attribute not rendered correctly when plain string.

Aleksander Nowodzinski пре 9 година
родитељ
комит
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.