@ckeditor/ckeditor5-paragraph
Advanced tools
Comparing version 10.0.3 to 10.0.4
Changelog | ||
========= | ||
## [10.0.4](https://github.com/ckeditor/ckeditor5-paragraph/compare/v10.0.3...v10.0.4) (2018-12-05) | ||
### Other changes | ||
* Improved SVG icons size. See [ckeditor/ckeditor5-theme-lark#206](https://github.com/ckeditor/ckeditor5-theme-lark/issues/206). ([a9f440f](https://github.com/ckeditor/ckeditor5-paragraph/commit/a9f440f)) | ||
## [10.0.3](https://github.com/ckeditor/ckeditor5-paragraph/compare/v10.0.2...v10.0.3) (2018-10-08) | ||
@@ -5,0 +12,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-paragraph", | ||
"version": "10.0.3", | ||
"version": "10.0.4", | ||
"description": "Paragraph feature for CKEditor 5.", | ||
@@ -13,16 +13,16 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^11.0.1", | ||
"@ckeditor/ckeditor5-engine": "^11.0.0", | ||
"@ckeditor/ckeditor5-ui": "^11.1.0", | ||
"@ckeditor/ckeditor5-utils": "^11.0.0" | ||
"@ckeditor/ckeditor5-core": "^11.1.0", | ||
"@ckeditor/ckeditor5-ui": "^11.2.0", | ||
"@ckeditor/ckeditor5-utils": "^11.1.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^10.0.3", | ||
"@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", | ||
"@ckeditor/ckeditor5-basic-styles": "^10.1.0", | ||
"@ckeditor/ckeditor5-clipboard": "^10.0.4", | ||
"@ckeditor/ckeditor5-editor-classic": "^11.0.2", | ||
"@ckeditor/ckeditor5-engine": "^12.0.0", | ||
"@ckeditor/ckeditor5-enter": "^10.1.3", | ||
"@ckeditor/ckeditor5-heading": "^10.1.1", | ||
"@ckeditor/ckeditor5-link": "^10.1.0", | ||
"@ckeditor/ckeditor5-typing": "^11.0.2", | ||
"@ckeditor/ckeditor5-undo": "^10.0.4", | ||
"eslint": "^5.5.0", | ||
@@ -29,0 +29,0 @@ "eslint-config-ckeditor5": "^1.0.7", |
@@ -13,5 +13,2 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import { SchemaContext } from '@ckeditor/ckeditor5-engine/src/model/schema'; | ||
import Position from '@ckeditor/ckeditor5-engine/src/model/position'; | ||
import Range from '@ckeditor/ckeditor5-engine/src/model/range'; | ||
@@ -53,2 +50,4 @@ /** | ||
data.upcastDispatcher.on( 'element', ( evt, data, conversionApi ) => { | ||
const writer = conversionApi.writer; | ||
// When element is already consumed by higher priority converters then do nothing. | ||
@@ -65,3 +64,3 @@ if ( !conversionApi.consumable.test( data.viewItem, { name: data.viewItem.name } ) ) { | ||
const paragraph = conversionApi.writer.createElement( 'paragraph' ); | ||
const paragraph = writer.createElement( 'paragraph' ); | ||
@@ -79,6 +78,6 @@ // Find allowed parent for paragraph that we are going to insert. | ||
// Insert paragraph in allowed position. | ||
conversionApi.writer.insert( paragraph, splitResult.position ); | ||
writer.insert( paragraph, splitResult.position ); | ||
// Convert children to paragraph. | ||
const { modelRange } = conversionApi.convertChildren( data.viewItem, Position.createAt( paragraph ) ); | ||
const { modelRange } = conversionApi.convertChildren( data.viewItem, writer.createPositionAt( paragraph, 0 ) ); | ||
@@ -88,3 +87,3 @@ // Output range starts before paragraph but ends inside it after last child. | ||
// When next node won't be allowed in a paragraph it will split this paragraph anyway. | ||
data.modelRange = new Range( Position.createBefore( paragraph ), modelRange.end ); | ||
data.modelRange = writer.createRange( writer.createPositionBefore( paragraph ), modelRange.end ); | ||
data.modelCursor = data.modelRange.end; | ||
@@ -197,7 +196,7 @@ | ||
conversionApi.writer.insert( paragraph, position ); | ||
return conversionApi.convertItem( input, Position.createAt( paragraph ) ); | ||
return conversionApi.convertItem( input, conversionApi.writer.createPositionAt( paragraph, 0 ) ); | ||
} | ||
function isParagraphable( node, position, schema ) { | ||
const context = new SchemaContext( position ); | ||
const context = schema.createContext( position ); | ||
@@ -204,0 +203,0 @@ // When paragraph is allowed in this context... |
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
20213
3
13
283
- Removed@ckeditor/ckeditor5-engine@^11.0.0
- Removed@ckeditor/ckeditor5-engine@11.0.0(transitive)