@ckeditor/ckeditor5-list
Advanced tools
Comparing version 11.0.1 to 11.0.2
Changelog | ||
========= | ||
## [11.0.2](https://github.com/ckeditor/ckeditor5-list/compare/v11.0.1...v11.0.2) (2018-10-08) | ||
### Other changes | ||
* Updated translations. ([00fed4b](https://github.com/ckeditor/ckeditor5-list/commit/00fed4b)) | ||
## [11.0.1](https://github.com/ckeditor/ckeditor5-list/compare/v11.0.0...v11.0.1) (2018-07-18) | ||
@@ -5,0 +12,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-list", | ||
"version": "11.0.1", | ||
"version": "11.0.2", | ||
"description": "Ordered and unordered lists feature to CKEditor 5.", | ||
@@ -9,22 +9,23 @@ "keywords": [ | ||
"ckeditor 5", | ||
"ckeditor5-feature" | ||
"ckeditor5-feature", | ||
"ckeditor5-plugin" | ||
], | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-engine": "^10.2.0", | ||
"@ckeditor/ckeditor5-paragraph": "^10.0.2", | ||
"@ckeditor/ckeditor5-core": "^11.0.0", | ||
"@ckeditor/ckeditor5-ui": "^11.0.0", | ||
"@ckeditor/ckeditor5-utils": "^10.2.0" | ||
"@ckeditor/ckeditor5-engine": "^11.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^10.0.3", | ||
"@ckeditor/ckeditor5-core": "^11.0.1", | ||
"@ckeditor/ckeditor5-ui": "^11.1.0", | ||
"@ckeditor/ckeditor5-utils": "^11.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^10.0.2", | ||
"@ckeditor/ckeditor5-block-quote": "^10.0.2", | ||
"@ckeditor/ckeditor5-clipboard": "^10.0.2", | ||
"@ckeditor/ckeditor5-editor-classic": "^11.0.0", | ||
"@ckeditor/ckeditor5-enter": "^10.1.1", | ||
"@ckeditor/ckeditor5-heading": "^10.0.2", | ||
"@ckeditor/ckeditor5-link": "^10.0.3", | ||
"@ckeditor/ckeditor5-typing": "^11.0.0", | ||
"@ckeditor/ckeditor5-undo": "^10.0.2", | ||
"eslint": "^4.15.0", | ||
"@ckeditor/ckeditor5-basic-styles": "^10.0.3", | ||
"@ckeditor/ckeditor5-block-quote": "^10.1.0", | ||
"@ckeditor/ckeditor5-clipboard": "^10.0.3", | ||
"@ckeditor/ckeditor5-editor-classic": "^11.0.1", | ||
"@ckeditor/ckeditor5-enter": "^10.1.2", | ||
"@ckeditor/ckeditor5-heading": "^10.1.0", | ||
"@ckeditor/ckeditor5-link": "^10.0.4", | ||
"@ckeditor/ckeditor5-typing": "^11.0.1", | ||
"@ckeditor/ckeditor5-undo": "^10.0.3", | ||
"eslint": "^5.5.0", | ||
"eslint-config-ckeditor5": "^1.0.7", | ||
@@ -31,0 +32,0 @@ "husky": "^0.14.3", |
@@ -17,3 +17,3 @@ CKEditor 5 list feature | ||
See the [`@ckeditor/ckeditor5-list` package](https://docs.ckeditor.com/ckeditor5/latest/api/list.html) page in [CKEditor 5 documentation](https://docs.ckeditor.com/ckeditor5/latest/). | ||
See the [`@ckeditor/ckeditor5-list` package](https://ckeditor.com/docs/ckeditor5/latest/api/list.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). | ||
@@ -20,0 +20,0 @@ ## License |
@@ -13,2 +13,3 @@ /** | ||
import ModelRange from '@ckeditor/ckeditor5-engine/src/model/range'; | ||
import ModelSelection from '@ckeditor/ckeditor5-engine/src/model/selection'; | ||
@@ -121,3 +122,3 @@ import ViewPosition from '@ckeditor/ckeditor5-engine/src/view/position'; | ||
const listName = data.attributeNewValue == 'numbered' ? 'ol' : 'ul'; | ||
viewList = viewWriter.rename( viewList, listName ); | ||
viewList = viewWriter.rename( listName, viewList ); | ||
@@ -754,3 +755,3 @@ // 3. Merge the changed view list with other lists, if possible. | ||
*/ | ||
export function modelIndentPasteFixer( evt, [ content, selection ] ) { | ||
export function modelIndentPasteFixer( evt, [ content, selectable ] ) { | ||
// Check whether inserted content starts from a `listItem`. If it does not, it means that there are some other | ||
@@ -763,2 +764,10 @@ // elements before it and there is no need to fix indents, because even if we insert that content into a list, | ||
let selection; | ||
if ( !selectable ) { | ||
selection = this.document.selection; | ||
} else { | ||
selection = new ModelSelection( selectable ); | ||
} | ||
if ( item && item.is( 'listItem' ) ) { | ||
@@ -765,0 +774,0 @@ // Get a reference list item. Inserted list items will be fixed according to that item. |
@@ -18,3 +18,3 @@ /** | ||
* | ||
* It loads the {@link module:list/listediting~ListEditing list editing feature} | ||
* This is a "glue" plugin which loads the {@link module:list/listediting~ListEditing list editing feature} | ||
* and {@link module:list/listui~ListUI list UI feature}. | ||
@@ -21,0 +21,0 @@ * |
@@ -34,4 +34,5 @@ /** | ||
* The engine of the list feature. It handles creating, editing and removing lists and list items. | ||
* It registers the `numberedList`, `bulletedList`, `indentList` and `outdentList` commands. | ||
* | ||
* It registers the `'numberedList'`, `'bulletedList'`, `'indentList'` and `'outdentList'` commands. | ||
* | ||
* @extends module:core/plugin~Plugin | ||
@@ -38,0 +39,0 @@ */ |
@@ -17,3 +17,3 @@ /** | ||
/** | ||
* The list UI feature. It introduces the `numberedList` and `bulletedList` buttons that | ||
* The list UI feature. It introduces the `'numberedList'` and `'bulletedList'` buttons that | ||
* allow to convert paragraphs to and from list items and indent or outdent them. | ||
@@ -20,0 +20,0 @@ * |
@@ -13,3 +13,3 @@ /** | ||
* | ||
* @param {module:engine/view/writer~Writer} writer The writer instance. | ||
* @param {module:engine/view/downcastwriter~DowncastWriter} writer The writer instance. | ||
* @returns {module:engine/view/containerelement~ContainerElement} | ||
@@ -16,0 +16,0 @@ */ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104767
57
1545
+ Added@ckeditor/ckeditor5-engine@11.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@10.2.0(transitive)
- Removed@ckeditor/ckeditor5-utils@10.2.1(transitive)