Browse Source

Add note to a downcasthelpers attribute to attribute conversion.

Maciej Gołaszewski 6 years ago
parent
commit
a515927277
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/ckeditor5-engine/src/conversion/downcasthelpers.js

+ 2 - 0
packages/ckeditor5-engine/src/conversion/downcasthelpers.js

@@ -204,6 +204,8 @@ export default class DowncastHelpers extends ConversionHelpers {
 	 *			view: modelAttributeValue => ( { key: 'class', value: 'styled-' + modelAttributeValue } )
 	 *		} );
 	 *
+	 * *Note:* Downcasting to a style properties requires providing a style object as a `value`:
+	 *
 	 *		editor.conversion.for( 'downcast' ).attributeToAttribute( {
 	 *			model: 'lineHeight',
 	 *			view: modelAttributeValue => ( {