@ckeditor/ckeditor5-paragraph
Advanced tools
Comparing version 33.0.0 to 34.0.0
{ | ||
"name": "@ckeditor/ckeditor5-paragraph", | ||
"version": "33.0.0", | ||
"version": "34.0.0", | ||
"description": "Paragraph feature for CKEditor 5.", | ||
@@ -15,16 +15,16 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^33.0.0", | ||
"@ckeditor/ckeditor5-ui": "^33.0.0", | ||
"@ckeditor/ckeditor5-utils": "^33.0.0" | ||
"@ckeditor/ckeditor5-core": "^34.0.0", | ||
"@ckeditor/ckeditor5-ui": "^34.0.0", | ||
"@ckeditor/ckeditor5-utils": "^34.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^33.0.0", | ||
"@ckeditor/ckeditor5-clipboard": "^33.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^33.0.0", | ||
"@ckeditor/ckeditor5-engine": "^33.0.0", | ||
"@ckeditor/ckeditor5-enter": "^33.0.0", | ||
"@ckeditor/ckeditor5-heading": "^33.0.0", | ||
"@ckeditor/ckeditor5-link": "^33.0.0", | ||
"@ckeditor/ckeditor5-typing": "^33.0.0", | ||
"@ckeditor/ckeditor5-undo": "^33.0.0" | ||
"@ckeditor/ckeditor5-basic-styles": "^34.0.0", | ||
"@ckeditor/ckeditor5-clipboard": "^34.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^34.0.0", | ||
"@ckeditor/ckeditor5-engine": "^34.0.0", | ||
"@ckeditor/ckeditor5-enter": "^34.0.0", | ||
"@ckeditor/ckeditor5-heading": "^34.0.0", | ||
"@ckeditor/ckeditor5-link": "^34.0.0", | ||
"@ckeditor/ckeditor5-typing": "^34.0.0", | ||
"@ckeditor/ckeditor5-undo": "^34.0.0" | ||
}, | ||
@@ -31,0 +31,0 @@ "engines": { |
@@ -6,3 +6,4 @@ 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://travis-ci.com/ckeditor/ckeditor5) | ||
[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) | ||
![Dependency Status](https://img.shields.io/librariesio/release/npm/@ckeditor/ckeditor5-paragraph) | ||
@@ -9,0 +10,0 @@ This package implements paragraph support for CKEditor 5. |
@@ -36,2 +36,3 @@ /** | ||
* the new paragraph will be inserted. | ||
* @param {Object} attributes Attributes keys and values to set on a inserted paragraph | ||
* @fires execute | ||
@@ -41,2 +42,4 @@ */ | ||
const model = this.editor.model; | ||
const attributes = options.attributes; | ||
let position = options.position; | ||
@@ -47,2 +50,6 @@ | ||
if ( attributes ) { | ||
model.schema.setAllowedAttributes( paragraph, attributes, writer ); | ||
} | ||
if ( !model.schema.checkChild( position.parent, paragraph ) ) { | ||
@@ -49,0 +56,0 @@ const allowedParent = model.schema.findAllowedParent( position, paragraph ); |
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
13575
301
18
+ Added@ckeditor/ckeditor5-core@34.2.0(transitive)
+ Added@ckeditor/ckeditor5-engine@34.2.0(transitive)
+ Added@ckeditor/ckeditor5-ui@34.2.0(transitive)
+ Added@ckeditor/ckeditor5-utils@34.2.0(transitive)
- Removed@ckeditor/ckeditor5-core@33.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@33.0.0(transitive)
- Removed@ckeditor/ckeditor5-ui@33.0.0(transitive)
- Removed@ckeditor/ckeditor5-utils@33.0.0(transitive)