浏览代码

Changed: added Paragraph as feature dependency.

Szymon Cofalik 8 年之前
父节点
当前提交
6f5dc10a0f

+ 2 - 2
packages/ckeditor5-list/package.json

@@ -7,7 +7,8 @@
     "@ckeditor/ckeditor5-engine": "^0.8.0",
     "@ckeditor/ckeditor5-core": "^0.7.0",
     "@ckeditor/ckeditor5-ui": "^0.7.1",
-    "@ckeditor/ckeditor5-utils": "^0.8.0"
+    "@ckeditor/ckeditor5-utils": "^0.8.0",
+	"@ckeditor/ckeditor5-paragraph": "^0.6.1"
   },
   "devDependencies": {
     "@ckeditor/ckeditor5-basic-styles": "^0.7.1",
@@ -15,7 +16,6 @@
     "@ckeditor/ckeditor5-editor-classic": "^0.7.1",
     "@ckeditor/ckeditor5-enter": "^0.8.0",
     "@ckeditor/ckeditor5-heading": "^0.8.0",
-    "@ckeditor/ckeditor5-paragraph": "^0.6.1",
     "@ckeditor/ckeditor5-typing": "^0.8.0",
     "@ckeditor/ckeditor5-undo": "^0.7.1",
     "gulp": "^3.9.0",

+ 4 - 3
packages/ckeditor5-list/src/list.js

@@ -7,14 +7,15 @@
  * @module list/list
  */
 
-import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import ListEngine from './listengine';
-import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
-import { parseKeystroke } from '@ckeditor/ckeditor5-utils/src/keyboard';
 
 import numberedListIcon from '../theme/icons/numberedlist.svg';
 import bulletedListIcon from '../theme/icons/bulletedlist.svg';
 
+import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
+import { parseKeystroke } from '@ckeditor/ckeditor5-utils/src/keyboard';
+import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
+
 /**
  * The lists feature. It introduces the `numberedList` and `bulletedList` buttons which
  * allows to convert paragraphs to/from list items and indent/outdent them.

+ 10 - 1
packages/ckeditor5-list/src/listengine.js

@@ -7,10 +7,12 @@
  * @module list/listengine
  */
 
-import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import ListCommand from './listcommand';
 import IndentCommand from './indentcommand';
 
+import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
+import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
+
 import {
 	cleanList,
 	cleanListItem,
@@ -33,6 +35,13 @@ import {
  * @extends module:core/plugin~Plugin
  */
 export default class ListEngine extends Plugin {
+	/**
+	 * @inheritDoc
+	 */
+	static get requires() {
+		return [ Paragraph ];
+	}
+
 	/**
 	 * @inheritDoc
 	 */