Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-enter

Package Overview
Dependencies
Maintainers
1
Versions
620
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-enter - npm Package Compare versions

Comparing version 0.10.0 to 1.0.0-alpha.1

5

CHANGELOG.md
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 @@

34

package.json
{
"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 );

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc