Sfoglia il codice sorgente

Docs: Reflect the changes to ckeditor5-presets. [skip ci]

Piotrek Koszuliński 8 anni fa
parent
commit
6acc50da45

+ 2 - 2
packages/ckeditor5-markdown-gfm/docs/_snippets/features/markdown.js

@@ -7,7 +7,7 @@
 
 
 import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
 import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
 
 
-import ArticlePreset from '@ckeditor/ckeditor5-presets/src/article';
+import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset';
 
 
 import GFMDataProcessor from '@ckeditor/ckeditor5-markdown-gfm/src/gfmdataprocessor';
 import GFMDataProcessor from '@ckeditor/ckeditor5-markdown-gfm/src/gfmdataprocessor';
 
 
@@ -17,7 +17,7 @@ function Markdown( editor ) {
 
 
 ClassicEditor
 ClassicEditor
 	.create( document.querySelector( '#snippet-markdown' ), {
 	.create( document.querySelector( '#snippet-markdown' ), {
-		plugins: [ ArticlePreset, Markdown ],
+		plugins: [ ArticlePluginSet, Markdown ],
 		toolbar: [ 'headings', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo' ],
 		toolbar: [ 'headings', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo' ],
 		image: {
 		image: {
 			toolbar: [ 'imageStyleFull', 'imageStyleSide', '|', 'imageTextAlternative' ]
 			toolbar: [ 'imageStyleFull', 'imageStyleSide', '|', 'imageTextAlternative' ]

+ 12 - 2
packages/ckeditor5-markdown-gfm/docs/features/markdown.md

@@ -28,7 +28,10 @@ Then, you can enable this data processor by creating a simple plugin which will
 ```js
 ```js
 import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
 import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
 
 
-import ArticlePreset from '@ckeditor/ckeditor5-presets/src/article';
+import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
+import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
+import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
+// ...
 
 
 import GFMDataProcessor from '@ckeditor/ckeditor5-markdown-gfm/src/gfmdataprocessor';
 import GFMDataProcessor from '@ckeditor/ckeditor5-markdown-gfm/src/gfmdataprocessor';
 
 
@@ -39,7 +42,14 @@ function Markdown( editor ) {
 
 
 ClassicEditor
 ClassicEditor
 	.create( document.querySelector( '#snippet-markdown' ), {
 	.create( document.querySelector( '#snippet-markdown' ), {
-		plugins: [ ArticlePreset, Markdown ],
+		plugins: [
+			Markdown,
+
+			Essentials,
+			Bold,
+			Italic,
+			// ...
+		],
 		// ...
 		// ...
 	} )
 	} )
 	.then( ... )
 	.then( ... )