8
0
Эх сурвалжийг харах

Add style retrieval for model storage.

Maciej Gołaszewski 6 жил өмнө
parent
commit
09a4053add

+ 6 - 2
packages/ckeditor5-engine/src/view/element.js

@@ -379,8 +379,12 @@ export default class Element extends Node {
 	 * @param {String} property
 	 * @returns {String|undefined}
 	 */
-	getStyle( property ) {
-		return this._styles.getInlineRule( property );
+	getStyle( property, asModel = false ) {
+		if ( asModel ) {
+			return this._styles.getModel( property );
+		} else {
+			return this._styles.getInlineRule( property );
+		}
 	}
 
 	/**