8
0
فهرست منبع

Make upcast helpers asttribute to attribute styles examples shorter.

Maciej Gołaszewski 6 سال پیش
والد
کامیت
9f13db0526
1فایلهای تغییر یافته به همراه2 افزوده شده و 4 حذف شده
  1. 2 4
      packages/ckeditor5-engine/src/conversion/upcasthelpers.js

+ 2 - 4
packages/ckeditor5-engine/src/conversion/upcasthelpers.js

@@ -244,8 +244,7 @@ export default class UpcastHelpers extends ConversionHelpers {
 	 *		// Default conversion of font-weight style will result in setting bold attribute to true.
 	 *		// Default conversion of font-weight style will result in setting bold attribute to true.
 	 *		editor.conversion.for( 'upcast' ).attributeToAttribute( {
 	 *		editor.conversion.for( 'upcast' ).attributeToAttribute( {
 	 *			view: {
 	 *			view: {
-	 *				key: 'style',
-	 *				value: {
+	 *				styles: {
 	 *					'font-weight': 'bold'
 	 *					'font-weight': 'bold'
 	 *				}
 	 *				}
 	 *			},
 	 *			},
@@ -255,8 +254,7 @@ export default class UpcastHelpers extends ConversionHelpers {
 	 *		// This converter will pass any value of a style property define a callback.
 	 *		// This converter will pass any value of a style property define a callback.
 	 *		editor.conversion.for( 'upcast' ).attributeToAttribute( {
 	 *		editor.conversion.for( 'upcast' ).attributeToAttribute( {
 	 *			view: {
 	 *			view: {
-	 *				key: 'style',
-	 *				value: {
+	 *				styles: {
 	 *					'line-height': /[\s\S]+/
 	 *					'line-height': /[\s\S]+/
 	 *				}
 	 *				}
 	 *			},
 	 *			},