@ckeditor/ckeditor5-enter
Advanced tools
Comparing version 0.10.0 to 1.0.0-alpha.1
Changelog | ||
========= | ||
## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-enter/compare/v0.10.0...v1.0.0-alpha.1) (2017-10-03) | ||
Internal changes only (updated dependencies, documentation, etc.). | ||
## [0.10.0](https://github.com/ckeditor/ckeditor5-enter/compare/v0.9.1...v0.10.0) (2017-09-03) | ||
@@ -5,0 +10,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-enter", | ||
"version": "0.10.0", | ||
"version": "1.0.0-alpha.1", | ||
"description": "Enter feature for CKEditor 5.", | ||
"keywords": [], | ||
"keywords": [ | ||
"ckeditor5", | ||
"ckeditor5-feature" | ||
], | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^0.9.0", | ||
"@ckeditor/ckeditor5-engine": "^0.11.0", | ||
"@ckeditor/ckeditor5-utils": "^0.10.0" | ||
"@ckeditor/ckeditor5-core": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-engine": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-utils": "^1.0.0-alpha.1" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-dev-lint": "^3.1.0", | ||
"@ckeditor/ckeditor5-basic-styles": "^0.9.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^0.8.0", | ||
"@ckeditor/ckeditor5-heading": "^0.10.0", | ||
"@ckeditor/ckeditor5-typing": "^0.10.0", | ||
"@ckeditor/ckeditor5-undo": "^0.9.0", | ||
"eslint-config-ckeditor5": "^1.0.5", | ||
"@ckeditor/ckeditor5-dev-lint": "^3.1.4", | ||
"@ckeditor/ckeditor5-basic-styles": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-editor-classic": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-heading": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-typing": "^1.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-undo": "^1.0.0-alpha.1", | ||
"eslint-config-ckeditor5": "^1.0.6", | ||
"gulp": "^3.9.1", | ||
@@ -33,3 +36,8 @@ "guppy-pre-commit": "^0.4.0" | ||
"url": "https://github.com/ckeditor/ckeditor5-enter.git" | ||
} | ||
}, | ||
"files": [ | ||
"lang", | ||
"src", | ||
"theme" | ||
] | ||
} |
@@ -1,2 +0,2 @@ | ||
CKEditor 5 enter feature | ||
CKEditor 5 Enter feature | ||
======================================== | ||
@@ -11,6 +11,10 @@ | ||
The Enter feature for CKEditor 5. More information about the project can be found at the following URL: <https://github.com/ckeditor/ckeditor5-enter>. | ||
This package implements the <kbd>Enter</kbd> key support for CKEditor 5. | ||
## Documentation | ||
See the [`@ckeditor/ckeditor5-enter` package](https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/api/enter.html) page in [CKEditor 5 documentation](https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/). | ||
## License | ||
Licensed under the GPL, LGPL and MPL licenses, at your choice. For full details about the license, please check the `LICENSE.md` file. |
@@ -85,10 +85,15 @@ /** | ||
function splitBlock( batch, selection, splitPos ) { | ||
const oldElement = splitPos.parent; | ||
const newElement = new oldElement.constructor( oldElement.name, oldElement.getAttributes() ); | ||
if ( splitPos.isAtEnd ) { | ||
// If the split is at the end of element, instead of splitting, just create a clone of position's parent | ||
// element and insert it after cloned element. The result is the same but less operations are taken | ||
// element and insert it after split element. The result is the same but less operations are done | ||
// and it's more semantically correct (when it comes to operational transformation). | ||
const oldElement = splitPos.parent; | ||
const newElement = new oldElement.constructor( oldElement.name, oldElement.getAttributes() ); | ||
batch.insert( Position.createAfter( splitPos.parent ), newElement ); | ||
} else if ( splitPos.isAtStart ) { | ||
// If the split is at the start of element, instead of splitting, just create a clone of position's parent | ||
// element and insert it before split element. The result is the same but less operations are done | ||
// and it's more semantically correct (when it comes to operational transformation). | ||
batch.insert( Position.createBefore( splitPos.parent ), newElement ); | ||
} else { | ||
@@ -95,0 +100,0 @@ batch.split( splitPos ); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
20
11884
7
162
1
+ Added@ckeditor/ckeditor5-core@1.0.0-beta.4(transitive)
+ Added@ckeditor/ckeditor5-engine@1.0.0-beta.4(transitive)
+ Added@ckeditor/ckeditor5-utils@1.0.0-beta.4(transitive)
- Removed@ckeditor/ckeditor5-core@0.9.0(transitive)
- Removed@ckeditor/ckeditor5-engine@0.11.0(transitive)
- Removed@ckeditor/ckeditor5-utils@0.10.0(transitive)