浏览代码

Passing all conversion parameters to creator from array confing.

Szymon Kupś 7 年之前
父节点
当前提交
db00df1359
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-engine/src/conversion/downcast-converters.js

+ 2 - 2
packages/ckeditor5-engine/src/conversion/downcast-converters.js

@@ -450,7 +450,7 @@ function _getCreatorForArrayConfig( config ) {
 	const defaultConfig = config.find( configEntry => configEntry.model === undefined );
 
 	// Return a creator function.
-	return modelAttributeValue => {
+	return ( modelAttributeValue, data, consumable, conversionApi ) => {
 		// Set default config at first. It will be used if no other entry matches model attribute value.
 		let matchedConfigEntry = defaultConfig;
 
@@ -466,7 +466,7 @@ function _getCreatorForArrayConfig( config ) {
 		// If there was default config or matched config...
 		if ( matchedConfigEntry ) {
 			// The entry `.view` is a function after it got normalized earlier, execute it and return the value.
-			return matchedConfigEntry.view( modelAttributeValue );
+			return matchedConfigEntry.view( modelAttributeValue, data, consumable, conversionApi );
 		}
 
 		return null;