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

Docs: Corrected some documentation.

Szymon Cofalik 6 лет назад
Родитель
Сommit
886ec36b3c
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      packages/ckeditor5-engine/src/view/domconverter.js

+ 3 - 2
packages/ckeditor5-engine/src/view/domconverter.js

@@ -890,7 +890,7 @@ export default class DomConverter {
 	 * * a space at the beginning is changed to ` ` if this is the first text node in its container
 	 * element or if a previous text node ends with a space character,
 	 * * space at the end of the text node is changed to ` ` if there are two spaces at the end of a node or if next node
-	 * starts with a space,
+	 * starts with a space or if it is the last text node in its container,
 	 * * remaining spaces are replaced to a chain of spaces and ` ` (e.g. `'x   x'` becomes `'x   x'`).
 	 *
 	 * Content of {@link #preElements} is not processed.
@@ -958,7 +958,8 @@ export default class DomConverter {
 	 * * multiple whitespaces are replaced to a single space,
 	 * * space at the beginning of a text node is removed if it is the first text node in its container
 	 * element or if the previous text node ends with a space character,
-	 * * space at the end of the text node is removed, if it is the last text node in its container,
+	 * * space at the end of the text node is removed if there are two spaces at the end of a node or if next node
+	 * starts with a space or if it is the last text node in its container
 	 * * nbsps are converted to spaces.
 	 *
 	 * @param {Node} node DOM text node to process.