浏览代码

Internal: The ckeditor5-presets became ckeditor5-essentials. See ckeditor/ckeditor5-essentials#1.

Piotrek Koszuliński 8 年之前
父节点
当前提交
dd7bfec4a6

+ 1 - 1
packages/ckeditor5-core/package.json

@@ -17,7 +17,7 @@
     "@ckeditor/ckeditor5-image": "^0.7.0",
     "@ckeditor/ckeditor5-link": "^0.8.0",
     "@ckeditor/ckeditor5-list": "^0.7.0",
-    "@ckeditor/ckeditor5-presets": "^0.3.0",
+    "@ckeditor/ckeditor5-essentials": "^0.3.0",
     "@ckeditor/ckeditor5-ui": "^0.10.0",
     "eslint-config-ckeditor5": "^1.0.5",
     "gulp": "^3.9.1",

+ 2 - 2
packages/ckeditor5-core/src/editor/editorconfig.jsdoc

@@ -46,12 +46,12 @@
  * the plugins using their constructors:
  *
  *		// A preset of plugins is a plugin as well.
- *		import EssentialsPreset from '@ckeditor/ckeditor5-presets/src/essentials';
+ *		import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
  *		// The bold plugin.
  *		import Bold from '@ckeditor/ckeditor5-editor-basic-styles/src/bold';
  *
  *		const config = {
- *			plugins: [ EssentialsPreset, Bold ]
+ *			plugins: [ Essentials, Bold ]
  *		};
  *
  * @member {Array.<String|Function>} module:core/editor/editorconfig~EditorConfig#plugins

+ 2 - 2
packages/ckeditor5-core/tests/_utils-tests/articlepluginset.js

@@ -8,7 +8,7 @@
 import ArticlePluginSet from '../_utils/articlepluginset';
 import ClassicTestEditor from '../_utils/classictesteditor';
 
-import EssentialsPreset from '@ckeditor/ckeditor5-presets/src/essentials';
+import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat';
 import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
@@ -47,7 +47,7 @@ describe( 'ArticlePluginSet', () => {
 	} );
 
 	it( 'should load all its dependencies', () => {
-		expect( editor.plugins.get( EssentialsPreset ) ).to.be.instanceOf( EssentialsPreset );
+		expect( editor.plugins.get( Essentials ) ).to.be.instanceOf( Essentials );
 
 		expect( editor.plugins.get( Paragraph ) ).to.be.instanceOf( Paragraph );
 		expect( editor.plugins.get( Autoformat ) ).to.be.instanceOf( Autoformat );

+ 2 - 2
packages/ckeditor5-core/tests/_utils/articlepluginset.js

@@ -9,7 +9,7 @@
 
 import Plugin from '../../src/plugin';
 
-import EssentialsPreset from '@ckeditor/ckeditor5-presets/src/essentials';
+import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
 
 import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat';
 import BlockQuote from '@ckeditor/ckeditor5-block-quote/src/blockquote';
@@ -37,7 +37,7 @@ import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 export default class ArticlePluginSet extends Plugin {
 	static get requires() {
 		return [
-			EssentialsPreset,
+			Essentials,
 			Autoformat,
 			BlockQuote,
 			Bold,