@ckeditor/ckeditor5-restricted-editing
Advanced tools
Comparing version 26.0.0 to 27.0.0
{ | ||
"name": "@ckeditor/ckeditor5-restricted-editing", | ||
"version": "26.0.0", | ||
"version": "27.0.0", | ||
"description": "A restricted editing feature for CKEditor 5 editors.", | ||
@@ -13,20 +13,20 @@ "keywords": [ | ||
"dependencies": { | ||
"ckeditor5": "^26.0.0" | ||
"ckeditor5": "^27.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^26.0.0", | ||
"@ckeditor/ckeditor5-block-quote": "^26.0.0", | ||
"@ckeditor/ckeditor5-clipboard": "^26.0.0", | ||
"@ckeditor/ckeditor5-core": "^26.0.0", | ||
"@ckeditor/ckeditor5-basic-styles": "^27.0.0", | ||
"@ckeditor/ckeditor5-block-quote": "^27.0.0", | ||
"@ckeditor/ckeditor5-clipboard": "^27.0.0", | ||
"@ckeditor/ckeditor5-core": "^27.0.0", | ||
"@ckeditor/ckeditor5-dev-utils": "^24.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^26.0.0", | ||
"@ckeditor/ckeditor5-engine": "^26.0.0", | ||
"@ckeditor/ckeditor5-link": "^26.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^26.0.0", | ||
"@ckeditor/ckeditor5-table": "^26.0.0", | ||
"@ckeditor/ckeditor5-theme-lark": "^26.0.0", | ||
"@ckeditor/ckeditor5-typing": "^26.0.0", | ||
"@ckeditor/ckeditor5-ui": "^26.0.0", | ||
"@ckeditor/ckeditor5-undo": "^26.0.0", | ||
"@ckeditor/ckeditor5-utils": "^26.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^27.0.0", | ||
"@ckeditor/ckeditor5-engine": "^27.0.0", | ||
"@ckeditor/ckeditor5-link": "^27.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^27.0.0", | ||
"@ckeditor/ckeditor5-table": "^27.0.0", | ||
"@ckeditor/ckeditor5-theme-lark": "^27.0.0", | ||
"@ckeditor/ckeditor5-typing": "^27.0.0", | ||
"@ckeditor/ckeditor5-ui": "^27.0.0", | ||
"@ckeditor/ckeditor5-undo": "^27.0.0", | ||
"@ckeditor/ckeditor5-utils": "^27.0.0", | ||
"webpack": "^4.43.0", | ||
@@ -33,0 +33,0 @@ "webpack-cli": "^3.3.11" |
@@ -81,6 +81,6 @@ /** | ||
for ( const [ name, data ] of editor.model.document.differ._changedMarkers ) { | ||
for ( const { name, data } of editor.model.document.differ.getChangedMarkers() ) { | ||
if ( name.startsWith( 'restrictedEditingException' ) && data.newRange.root.rootName == '$graveyard' ) { | ||
writer.updateMarker( name, { | ||
range: writer.createRange( writer.createPositionAt( editor.model.document.selection.focus ) ) | ||
range: writer.createRange( writer.createPositionAt( data.oldRange.start ) ) | ||
} ); | ||
@@ -87,0 +87,0 @@ |
@@ -203,2 +203,3 @@ /** | ||
const viewDoc = editor.editing.view.document; | ||
const clipboard = editor.plugins.get( 'ClipboardPipeline' ); | ||
@@ -215,8 +216,8 @@ this.listenTo( model, 'deleteContent', restrictDeleteContent( editor ), { priority: 'high' } ); | ||
// Block clipboard outside exception marker on paste. | ||
this.listenTo( viewDoc, 'clipboardInput', function( evt ) { | ||
// Block clipboard outside exception marker on paste and drop. | ||
this.listenTo( clipboard, 'contentInsertion', evt => { | ||
if ( !isRangeInsideSingleMarker( editor, selection.getFirstRange() ) ) { | ||
evt.stop(); | ||
} | ||
}, { priority: 'high' } ); | ||
} ); | ||
@@ -223,0 +224,0 @@ // Block clipboard outside exception marker on cut. |
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
195532
1137
+ Added@ckeditor/ckeditor5-clipboard@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-core@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-engine@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-enter@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-paragraph@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-select-all@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-typing@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-ui@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-undo@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-upload@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-utils@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-widget@27.1.0(transitive)
+ Addedckeditor5@27.1.0(transitive)
- Removed@ckeditor/ckeditor5-clipboard@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-core@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-enter@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-paragraph@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-select-all@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-typing@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-ui@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-undo@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-upload@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-utils@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-widget@26.0.0(transitive)
- Removedckeditor5@26.0.0(transitive)
Updatedckeditor5@^27.0.0