@ckeditor/ckeditor5-clipboard
Advanced tools
Comparing version 11.0.0 to 11.0.1
Changelog | ||
========= | ||
## [11.0.1](https://github.com/ckeditor/ckeditor5-clipboard/compare/v11.0.0...v11.0.1) (2019-04-10) | ||
### Bug fixes | ||
* The DOM `drop` event will not bubble up if the `clipboardInput` event was handled. Closes [ckeditor/ckeditor5-upload#92](https://github.com/ckeditor/ckeditor5-upload/issues/92). ([5d14697](https://github.com/ckeditor/ckeditor5-clipboard/commit/5d14697)) | ||
## [11.0.0](https://github.com/ckeditor/ckeditor5-clipboard/compare/v10.0.4...v11.0.0) (2019-02-28) | ||
@@ -5,0 +12,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-clipboard", | ||
"version": "11.0.0", | ||
"version": "11.0.1", | ||
"description": "Clipboard integration for CKEditor 5.", | ||
@@ -13,12 +13,12 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^12.0.0", | ||
"@ckeditor/ckeditor5-engine": "^13.0.0" | ||
"@ckeditor/ckeditor5-core": "^12.1.0", | ||
"@ckeditor/ckeditor5-engine": "^13.1.0", | ||
"@ckeditor/ckeditor5-utils": "^12.1.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^11.0.0", | ||
"@ckeditor/ckeditor5-block-quote": "^11.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^12.0.0", | ||
"@ckeditor/ckeditor5-essentials": "^11.0.0", | ||
"@ckeditor/ckeditor5-link": "^11.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^11.0.0", | ||
"@ckeditor/ckeditor5-basic-styles": "^11.1.0", | ||
"@ckeditor/ckeditor5-block-quote": "^11.0.1", | ||
"@ckeditor/ckeditor5-editor-classic": "^12.1.0", | ||
"@ckeditor/ckeditor5-link": "^11.0.1", | ||
"@ckeditor/ckeditor5-paragraph": "^11.0.1", | ||
"eslint": "^5.5.0", | ||
@@ -25,0 +25,0 @@ "eslint-config-ckeditor5": "^1.0.11", |
@@ -11,2 +11,3 @@ /** | ||
import DomEventObserver from '@ckeditor/ckeditor5-engine/src/view/observer/domeventobserver'; | ||
import EventInfo from '@ckeditor/ckeditor5-utils/src/eventinfo'; | ||
import DataTransfer from './datatransfer'; | ||
@@ -49,6 +50,15 @@ | ||
viewDocument.fire( 'clipboardInput', { | ||
const eventInfo = new EventInfo( viewDocument, 'clipboardInput' ); | ||
viewDocument.fire( eventInfo, { | ||
dataTransfer: data.dataTransfer, | ||
targetRanges | ||
} ); | ||
// If CKEditor handled the input, do not bubble the original event any further. | ||
// This helps external integrations recognize that fact and act accordingly. | ||
// https://github.com/ckeditor/ckeditor5-upload/issues/92 | ||
if ( eventInfo.stop.called ) { | ||
data.stopPropagation(); | ||
} | ||
} | ||
@@ -55,0 +65,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
31994
9
513
3
+ Added@ckeditor/ckeditor5-utils@12.1.1(transitive)