@ckeditor/ckeditor5-horizontal-line
Advanced tools
Comparing version 21.0.0 to 22.0.0
{ | ||
"name": "@ckeditor/ckeditor5-horizontal-line", | ||
"version": "21.0.0", | ||
"version": "22.0.0", | ||
"description": "Horizontal line feature for CKEditor 5.", | ||
@@ -13,14 +13,14 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^21.0.0", | ||
"@ckeditor/ckeditor5-ui": "^21.0.0", | ||
"@ckeditor/ckeditor5-widget": "^21.0.0" | ||
"@ckeditor/ckeditor5-core": "^22.0.0", | ||
"@ckeditor/ckeditor5-ui": "^22.0.0", | ||
"@ckeditor/ckeditor5-widget": "^22.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-cloud-services": "^21.0.0", | ||
"@ckeditor/ckeditor5-engine": "^21.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^21.0.0", | ||
"@ckeditor/ckeditor5-easy-image": "^21.0.0", | ||
"@ckeditor/ckeditor5-image": "^21.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^21.0.0", | ||
"@ckeditor/ckeditor5-utils": "^21.0.0" | ||
"@ckeditor/ckeditor5-cloud-services": "^22.0.0", | ||
"@ckeditor/ckeditor5-engine": "^22.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^22.0.0", | ||
"@ckeditor/ckeditor5-easy-image": "^22.0.0", | ||
"@ckeditor/ckeditor5-image": "^22.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^22.0.0", | ||
"@ckeditor/ckeditor5-utils": "^22.0.0" | ||
}, | ||
@@ -27,0 +27,0 @@ "engines": { |
@@ -45,4 +45,4 @@ /** | ||
model: 'horizontalLine', | ||
view: ( modelElement, viewWriter ) => { | ||
return viewWriter.createEmptyElement( 'hr' ); | ||
view: ( modelElement, { writer } ) => { | ||
return writer.createEmptyElement( 'hr' ); | ||
} | ||
@@ -53,13 +53,13 @@ } ); | ||
model: 'horizontalLine', | ||
view: ( modelElement, viewWriter ) => { | ||
view: ( modelElement, { writer } ) => { | ||
const label = t( 'Horizontal line' ); | ||
const viewWrapper = viewWriter.createContainerElement( 'div' ); | ||
const viewHrElement = viewWriter.createEmptyElement( 'hr' ); | ||
const viewWrapper = writer.createContainerElement( 'div' ); | ||
const viewHrElement = writer.createEmptyElement( 'hr' ); | ||
viewWriter.addClass( 'ck-horizontal-line', viewWrapper ); | ||
viewWriter.setCustomProperty( 'hr', true, viewWrapper ); | ||
writer.addClass( 'ck-horizontal-line', viewWrapper ); | ||
writer.setCustomProperty( 'hr', true, viewWrapper ); | ||
viewWriter.insert( viewWriter.createPositionAt( viewWrapper, 0 ), viewHrElement ); | ||
writer.insert( writer.createPositionAt( viewWrapper, 0 ), viewHrElement ); | ||
return toHorizontalLineWidget( viewWrapper, viewWriter, label ); | ||
return toHorizontalLineWidget( viewWrapper, writer, label ); | ||
} | ||
@@ -66,0 +66,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
43336
45
+ Added@ckeditor/ckeditor5-core@22.0.0(transitive)
+ Added@ckeditor/ckeditor5-engine@22.0.0(transitive)
+ Added@ckeditor/ckeditor5-typing@22.0.0(transitive)
+ Added@ckeditor/ckeditor5-ui@22.0.0(transitive)
+ Added@ckeditor/ckeditor5-utils@22.0.0(transitive)
+ Added@ckeditor/ckeditor5-widget@22.0.0(transitive)
- Removed@ckeditor/ckeditor5-core@21.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@21.0.0(transitive)
- Removed@ckeditor/ckeditor5-typing@21.0.0(transitive)
- Removed@ckeditor/ckeditor5-ui@21.0.0(transitive)
- Removed@ckeditor/ckeditor5-utils@21.0.0(transitive)
- Removed@ckeditor/ckeditor5-widget@21.0.0(transitive)