浏览代码

Docs: Used the getViewportTopOffsetConfig helper in the code snippets.

Aleksander Nowodzinski 7 年之前
父节点
当前提交
b381089b1e

+ 1 - 1
packages/ckeditor5-heading/docs/_snippets/features/custom-heading-elements.js

@@ -28,7 +28,7 @@ ClassicEditor
 			]
 		},
 		toolbar: {
-			viewportTopOffset: 100
+			viewportTopOffset: window.getViewportTopOffsetConfig()
 		}
 	} )
 	.then( editor => {

+ 1 - 1
packages/ckeditor5-heading/docs/_snippets/features/custom-heading-levels.js

@@ -18,7 +18,7 @@ ClassicEditor
 			]
 		},
 		toolbar: {
-			viewportTopOffset: 100
+			viewportTopOffset: window.getViewportTopOffsetConfig()
 		}
 	} )
 	.then( editor => {