8
0
Просмотр исходного кода

Fix is() check in "modelToViewPosition" event docs.

Maciej Gołaszewski 5 лет назад
Родитель
Сommit
fa109ad302
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/ckeditor5-engine/src/conversion/mapper.js

+ 1 - 1
packages/ckeditor5-engine/src/conversion/mapper.js

@@ -631,7 +631,7 @@ export default class Mapper {
 	 *			const sibling = data.modelPosition.nodeBefore;
 	 *			const sibling = data.modelPosition.nodeBefore;
 	 *
 	 *
 	 *			// Check if this is the element we are interested in.
 	 *			// Check if this is the element we are interested in.
-	 *			if ( !sibling.is( 'customElement' ) ) {
+	 *			if ( !sibling.is( 'element', 'customElement' ) ) {
 	 *				return;
 	 *				return;
 	 *			}
 	 *			}
 	 *
 	 *