@ckeditor/ckeditor5-paragraph
Advanced tools
Comparing version 43.3.1 to 44.0.0-alpha.0
@@ -96,8 +96,8 @@ /** | ||
if (!model.canEditAt(position)) { | ||
return; | ||
return null; | ||
} | ||
model.change((writer)=>{ | ||
return model.change((writer)=>{ | ||
position = this._findPositionToInsertParagraph(position, writer); | ||
if (!position) { | ||
return; | ||
return null; | ||
} | ||
@@ -110,2 +110,3 @@ const paragraph = writer.createElement('paragraph'); | ||
writer.setSelection(paragraph, 'in'); | ||
return writer.createPositionAt(paragraph, 0); | ||
}); | ||
@@ -112,0 +113,0 @@ } |
@@ -44,3 +44,3 @@ /** | ||
attributes?: Record<string, unknown>; | ||
}): void; | ||
}): Position | null; | ||
/** | ||
@@ -47,0 +47,0 @@ * Returns the best position to insert a new paragraph. |
{ | ||
"name": "@ckeditor/ckeditor5-paragraph", | ||
"version": "43.3.1", | ||
"version": "44.0.0-alpha.0", | ||
"description": "Paragraph feature for CKEditor 5.", | ||
@@ -16,5 +16,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "43.3.1", | ||
"@ckeditor/ckeditor5-ui": "43.3.1", | ||
"@ckeditor/ckeditor5-utils": "43.3.1" | ||
"@ckeditor/ckeditor5-core": "44.0.0-alpha.0", | ||
"@ckeditor/ckeditor5-ui": "44.0.0-alpha.0", | ||
"@ckeditor/ckeditor5-utils": "44.0.0-alpha.0" | ||
}, | ||
@@ -21,0 +21,0 @@ "author": "CKSource (http://cksource.com/)", |
@@ -6,12 +6,10 @@ CKEditor 5 paragraph feature | ||
[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master) | ||
[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) | ||
[![CircleCI](https://circleci.com/gh/ckeditor/ckeditor5.svg?style=shield)](https://app.circleci.com/pipelines/github/ckeditor/ckeditor5?branch=master) | ||
This package implements paragraph support for CKEditor 5. | ||
## Documentation | ||
## Installation | ||
See the [`@ckeditor/ckeditor5-paragraph` package](https://ckeditor.com/docs/ckeditor5/latest/api/paragraph.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). | ||
This plugin is part of the `ckeditor5` package. Install the whole package to use it. | ||
## Installation | ||
```bash | ||
@@ -21,4 +19,12 @@ npm install ckeditor5 | ||
## Create free account | ||
If you want to check full CKEditor 5 capabilities, sign up for a [free non-commitment 14-day trial](https://portal.ckeditor.com/signup). | ||
## Documentation | ||
See the [`@ckeditor/ckeditor5-paragraph` package](https://ckeditor.com/docs/ckeditor5/latest/api/paragraph.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). | ||
## License | ||
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). |
@@ -40,3 +40,3 @@ /** | ||
attributes?: Record<string, unknown>; | ||
}): void; | ||
}): Position | null; | ||
/** | ||
@@ -43,0 +43,0 @@ * Returns the best position to insert a new paragraph. |
@@ -46,8 +46,8 @@ /** | ||
if (!model.canEditAt(position)) { | ||
return; | ||
return null; | ||
} | ||
model.change(writer => { | ||
return model.change(writer => { | ||
position = this._findPositionToInsertParagraph(position, writer); | ||
if (!position) { | ||
return; | ||
return null; | ||
} | ||
@@ -60,2 +60,3 @@ const paragraph = writer.createElement('paragraph'); | ||
writer.setSelection(paragraph, 'in'); | ||
return writer.createPositionAt(paragraph, 0); | ||
}); | ||
@@ -62,0 +63,0 @@ } |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
90534
1099
29
1
+ Added@ckeditor/ckeditor5-core@44.0.0-alpha.0(transitive)
+ Added@ckeditor/ckeditor5-engine@44.0.0-alpha.0(transitive)
+ Added@ckeditor/ckeditor5-ui@44.0.0-alpha.0(transitive)
+ Added@ckeditor/ckeditor5-utils@44.0.0-alpha.0(transitive)
+ Added@ckeditor/ckeditor5-watchdog@44.0.0-alpha.0(transitive)
- Removed@ckeditor/ckeditor5-core@43.3.1(transitive)
- Removed@ckeditor/ckeditor5-engine@43.3.1(transitive)
- Removed@ckeditor/ckeditor5-ui@43.3.1(transitive)
- Removed@ckeditor/ckeditor5-utils@43.3.1(transitive)
- Removed@ckeditor/ckeditor5-watchdog@43.3.1(transitive)