浏览代码

Some docs fixes.

Szymon Kupś 8 年之前
父节点
当前提交
83c3cee08a
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      packages/ckeditor5-image/src/image/converters.js

+ 2 - 3
packages/ckeditor5-image/src/image/converters.js

@@ -69,8 +69,8 @@ export function viewFigureToModel() {
  *
  * @param {Array.<module:engine/conversion/modelconversiondispatcher~ModelConversionDispatcher>} dispatchers
  * @param {String} attributeName
- * @param {Function} [converter] Custom converter for attribute - default one converts attribute from model to the same
- * attribute in the view.
+ * @param {Function} [converter] Custom converter for the attribute - default one converts attribute from model `image` element
+ * to the same attribute in `img` in the view.
  */
 export function createImageAttributeConverter( dispatchers, attributeName, converter = modelToViewAttributeConverter ) {
 	for ( const dispatcher of dispatchers ) {
@@ -127,7 +127,6 @@ export function responsiveAttributeConverter() {
 }
 
 // Returns model to view image converter converting given attribute, and adding it to `img` element nested inside `figure` element.
-// Allows to provide `customConverter` function which if provided will replace 1 to 1 attribute conversion with custom one.
 //
 // @private
 function modelToViewAttributeConverter() {