Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Some docs fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonkups committed Sep 29, 2017
1 parent ff0960e commit 08d21e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/image/converters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 08d21e6

Please sign in to comment.