8
0
فهرست منبع

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

Kamil Piechaczek 7 سال پیش
والد
کامیت
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 ];