浏览代码

Docs: Configured toolbar offset.

Piotrek Koszuliński 8 年之前
父节点
当前提交
e5250f0afd
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      packages/ckeditor5-theme-lark/docs/_snippets/examples/theme-lark.js

+ 4 - 1
packages/ckeditor5-theme-lark/docs/_snippets/examples/theme-lark.js

@@ -14,7 +14,10 @@ import './extras.scss';
 ClassicEditor
 	.create( document.querySelector( '#snippet-classic-editor' ), {
 		plugins: [ ArticlePluginSet ],
-		toolbar: [ 'headings', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo' ],
+		toolbar: {
+			items: [ 'headings', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo' ],
+			viewportTopOffset: 60
+		},
 		image: {
 			toolbar: [ 'imageStyleFull', 'imageStyleSide', '|', 'imageTextAlternative' ]
 		}