浏览代码

Last docs fix.

Maciej Gołaszewski 5 年之前
父节点
当前提交
b0089edb4f

+ 2 - 1
packages/ckeditor5-engine/docs/_snippets/framework/extending-content-custom-element-converter.js

@@ -32,7 +32,8 @@ class InfoBox {
 function upcastConverter( event, data, conversionApi ) {
 	const viewInfoBox = data.viewItem;
 
-	// Detect that view element is an info-box div. Otherwise, it should be handled by another converter.
+	// Detect that view element is an info-box div.
+	// Otherwise, it should be handled by another converter.
 	if ( !viewInfoBox.hasClass( 'info-box' ) ) {
 		return;
 	}

+ 2 - 1
packages/ckeditor5-engine/docs/framework/guides/deep-dive/conversion-custom-element-converter.md

@@ -114,7 +114,8 @@ For the proposed HTML structure we need to:
 function upcastConverter( event, data, conversionApi ) {
 	const viewInfoBox = data.viewItem;
 
-	// Detect that view element is an info-box div. Otherwise, it should be handled by another converter.
+	// Detect that view element is an info-box div.
+	// Otherwise, it should be handled by another converter.
 	if ( !viewInfoBox.hasClass( 'info-box' ) ) {
 		return;
 	}