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

Commit

Permalink
Docs: Fixed incorrect (outdated) paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Apr 18, 2019
1 parent e83899e commit 8c39bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/conversion/upcastdispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import mix from '@ckeditor/ckeditor5-utils/src/mix';
* Examples of providing callbacks for `UpcastDispatcher`:
*
* // Converter for links (<a>).
* upcastDispatcher.on( 'element:a', ( evt, data, conversionApi ) => {
* editor.data.upcastDispatcher.on( 'element:a', ( evt, data, conversionApi ) => {
* if ( conversionApi.consumable.consume( data.viewItem, { name: true, attributes: [ 'href' ] } ) ) {
* // <a> element is inline and is represented by an attribute in the model.
* // This is why we need to convert only children.
Expand All @@ -56,7 +56,7 @@ import mix from '@ckeditor/ckeditor5-utils/src/mix';
* } );
*
* // Convert all elements which have no custom converter into paragraph (autoparagraphing).
* data.viewToModel.on( 'element', ( evt, data, conversionApi ) => {
* editor.data.upcastDispatcher.on( 'element', ( evt, data, conversionApi ) => {
* // When element is already consumed by higher priority converters then do nothing.
* if ( conversionApi.consumable.test( data.viewItem, { name: data.viewItem.name } ) ) {
* const paragraph = conversionApi.writer.createElement( 'paragraph' );
Expand Down

0 comments on commit 8c39bdb

Please sign in to comment.