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

Docs: Use classic build in the docs. [skip ci]

Piotrek Koszuliński 8 лет назад
Родитель
Сommit
cca44d4ad2

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

@@ -3,19 +3,10 @@
  * For licensing, see LICENSE.md.
  * For licensing, see LICENSE.md.
  */
  */
 
 
-/* globals console, window, document */
-
-import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
-
-import ArticlePreset from '@ckeditor/ckeditor5-presets/src/article';
+/* globals ClassicEditor, console, window, document */
 
 
 ClassicEditor
 ClassicEditor
 	.create( document.querySelector( '#snippet-custom-heading-levels' ), {
 	.create( document.querySelector( '#snippet-custom-heading-levels' ), {
-		plugins: [ ArticlePreset ],
-		toolbar: [ 'headings', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo' ],
-		image: {
-			toolbar: [ 'imageStyleFull', 'imageStyleSide', '|', 'imageTextAlternative' ]
-		},
 		heading: {
 		heading: {
 			options: [
 			options: [
 				{ modelElement: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },
 				{ modelElement: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },

+ 2 - 0
packages/ckeditor5-heading/docs/features/headings.md

@@ -3,6 +3,8 @@ title: Headings
 category: features
 category: features
 ---
 ---
 
 
+{@snippet build-classic-source}
+
 The {@link module:heading/heading~Heading} feature enables support for headings.
 The {@link module:heading/heading~Heading} feature enables support for headings.
 
 
 <info-box info>
 <info-box info>