Explorar el Código

Docs: Used the getViewportTopOffsetConfig helper in the code snippets.

Aleksander Nowodzinski hace 7 años
padre
commit
3ab1cea78e

+ 1 - 1
packages/ckeditor5-basic-styles/docs/_snippets/features/basic-styles.js

@@ -13,7 +13,7 @@ ClassicEditor
 			items: [
 			items: [
 				'bold', 'italic', 'underline', 'strikethrough', 'subscript', 'superscript', 'code', '|', 'undo', 'redo'
 				'bold', 'italic', 'underline', 'strikethrough', 'subscript', 'superscript', 'code', '|', 'undo', 'redo'
 			],
 			],
-			viewportTopOffset: 100
+			viewportTopOffset: window.getViewportTopOffsetConfig()
 		},
 		},
 		cloudServices: CS_CONFIG
 		cloudServices: CS_CONFIG
 	} )
 	} )