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

"getFillerOffset()" util from ContainerElement is exported in order to use in other place of the code.

Kamil Piechaczek 7 лет назад
Родитель
Сommit
6fe4a83047
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      packages/ckeditor5-engine/src/view/containerelement.js

+ 6 - 4
packages/ckeditor5-engine/src/view/containerelement.js

@@ -62,10 +62,12 @@ export default class ContainerElement extends Element {
 	}
 }
 
-// Returns block {@link module:engine/view/filler filler} offset or `null` if block filler is not needed.
-//
-// @returns {Number|null} Block filler offset or `null` if block filler is not needed.
-function getFillerOffset() {
+/**
+ * Returns block {@link module:engine/view/filler filler} offset or `null` if block filler is not needed.
+ *
+ * @returns {Number|null} Block filler offset or `null` if block filler is not needed.
+ */
+export function getFillerOffset() {
 	const children = [ ...this.getChildren() ];
 	const lastChild = children[ this.childCount - 1 ];