浏览代码

Added missing evt param to API docs samples.

Piotrek Koszuliński 9 年之前
父节点
当前提交
71000715d9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-engine/src/conversion/viewconversiondispatcher.js

+ 2 - 2
packages/ckeditor5-engine/src/conversion/viewconversiondispatcher.js

@@ -44,7 +44,7 @@ import extend from '../../utils/lib/lodash/extend.js';
  * Examples of providing callbacks for `ViewConversionDispatcher`:
  *
  *		// Converter for paragraphs (<p>).
- *		viewDispatcher.on( 'element:p', ( data, consumable, conversionApi ) => {
+ *		viewDispatcher.on( 'element:p', ( evt, data, consumable, conversionApi ) => {
  *			const paragraph = new ModelElement( 'paragraph' );
  *			const schemaQuery = {
  *				name: 'paragraph',
@@ -64,7 +64,7 @@ import extend from '../../utils/lib/lodash/extend.js';
  *		} );
  *
  *		// Converter for links (<a>).
- *		viewDispatcher.on( 'element:a', ( data, consumable, conversionApi ) => {
+ *		viewDispatcher.on( 'element:a', ( evt, data, consumable, conversionApi ) => {
  *			if ( consumable.consume( data.input, { name: true, attributes: [ 'href' ] } ) ) {
  *				// <a> element is inline and is represented by an attribute in the model.
  *				// This is why we are not updating `context` property.