@ckeditor/ckeditor5-enter
Advanced tools
Comparing version 16.0.0 to 17.0.0
Changelog | ||
========= | ||
## [17.0.0](https://github.com/ckeditor/ckeditor5-enter/compare/v16.0.0...v17.0.0) (2020-02-19) | ||
### Other changes | ||
* Fixed a case in track changes. Closes [ckeditor/ckeditor5#6072](https://github.com/ckeditor/ckeditor5/issues/6072). ([4848bcb](https://github.com/ckeditor/ckeditor5-enter/commit/4848bcb)) | ||
## [16.0.0](https://github.com/ckeditor/ckeditor5-enter/compare/v15.0.0...v16.0.0) (2019-12-04) | ||
@@ -5,0 +12,0 @@ |
@@ -5,3 +5,3 @@ Software License Agreement | ||
**CKEditor 5 Enter Feature** – https://github.com/ckeditor/ckeditor5-enter <br> | ||
Copyright (c) 2003-2019, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved. | ||
Copyright (c) 2003-2020, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved. | ||
@@ -8,0 +8,0 @@ Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). |
{ | ||
"name": "@ckeditor/ckeditor5-enter", | ||
"version": "16.0.0", | ||
"version": "17.0.0", | ||
"description": "Enter feature for CKEditor 5.", | ||
@@ -13,13 +13,13 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^16.0.0", | ||
"@ckeditor/ckeditor5-engine": "^16.0.0", | ||
"@ckeditor/ckeditor5-utils": "^16.0.0" | ||
"@ckeditor/ckeditor5-core": "^17.0.0", | ||
"@ckeditor/ckeditor5-engine": "^17.0.0", | ||
"@ckeditor/ckeditor5-utils": "^17.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^16.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^16.0.0", | ||
"@ckeditor/ckeditor5-heading": "^16.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^16.0.0", | ||
"@ckeditor/ckeditor5-typing": "^16.0.0", | ||
"@ckeditor/ckeditor5-undo": "^16.0.0", | ||
"@ckeditor/ckeditor5-basic-styles": "^17.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^17.0.0", | ||
"@ckeditor/ckeditor5-heading": "^17.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^17.0.0", | ||
"@ckeditor/ckeditor5-typing": "^17.0.0", | ||
"@ckeditor/ckeditor5-undo": "^17.0.0", | ||
"eslint": "^5.5.0", | ||
@@ -26,0 +26,0 @@ "eslint-config-ckeditor5": "^2.0.0", |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
@@ -4,0 +4,0 @@ */ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
@@ -86,3 +86,3 @@ */ | ||
const attributesToCopy = getCopyOnEnterAttributes( model.schema, selection.getAttributes() ); | ||
insertBreak( writer, range.end ); | ||
insertBreak( model, writer, range.end ); | ||
@@ -99,3 +99,3 @@ writer.removeSelectionAttribute( selection.getAttributeKeys() ); | ||
if ( isContainedWithinOneElement ) { | ||
insertBreak( writer, selection.focus ); | ||
insertBreak( model, writer, selection.focus ); | ||
} | ||
@@ -121,6 +121,6 @@ // Selection over multiple elements. | ||
function insertBreak( writer, position ) { | ||
function insertBreak( model, writer, position ) { | ||
const breakLineElement = writer.createElement( 'softBreak' ); | ||
writer.insert( breakLineElement, position ); | ||
model.insertContent( breakLineElement, position ); | ||
writer.setSelection( breakLineElement, 'after' ); | ||
@@ -127,0 +127,0 @@ } |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
@@ -4,0 +4,0 @@ */ |
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
24497
+ Added@ckeditor/ckeditor5-core@17.0.0(transitive)
+ Added@ckeditor/ckeditor5-engine@17.0.0(transitive)
+ Added@ckeditor/ckeditor5-utils@17.0.0(transitive)
- Removed@ckeditor/ckeditor5-core@16.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@16.0.0(transitive)
- Removed@ckeditor/ckeditor5-utils@16.0.0(transitive)