@ckeditor/ckeditor5-widget
Advanced tools
Comparing version 43.1.0-alpha.5 to 43.1.0-alpha.6
{ | ||
"name": "@ckeditor/ckeditor5-widget", | ||
"version": "43.1.0-alpha.5", | ||
"version": "43.1.0-alpha.6", | ||
"description": "Widget API for CKEditor 5.", | ||
@@ -15,8 +15,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "43.1.0-alpha.5", | ||
"@ckeditor/ckeditor5-engine": "43.1.0-alpha.5", | ||
"@ckeditor/ckeditor5-enter": "43.1.0-alpha.5", | ||
"@ckeditor/ckeditor5-ui": "43.1.0-alpha.5", | ||
"@ckeditor/ckeditor5-utils": "43.1.0-alpha.5", | ||
"@ckeditor/ckeditor5-typing": "43.1.0-alpha.5", | ||
"@ckeditor/ckeditor5-core": "43.1.0-alpha.6", | ||
"@ckeditor/ckeditor5-engine": "43.1.0-alpha.6", | ||
"@ckeditor/ckeditor5-enter": "43.1.0-alpha.6", | ||
"@ckeditor/ckeditor5-ui": "43.1.0-alpha.6", | ||
"@ckeditor/ckeditor5-utils": "43.1.0-alpha.6", | ||
"@ckeditor/ckeditor5-typing": "43.1.0-alpha.6", | ||
"lodash-es": "4.17.21" | ||
@@ -23,0 +23,0 @@ }, |
@@ -220,2 +220,6 @@ /** | ||
let element = domEventData.target; | ||
// Some of DOM elements have no view element representation so it may be null. | ||
if (!element) { | ||
return; | ||
} | ||
// If triple click should select entire paragraph. | ||
@@ -518,6 +522,11 @@ if (domEventData.domEvent.detail >= 3) { | ||
const domRange = getRangeFromMouseEvent(domEventData.domEvent); | ||
if (!domRange) { | ||
return null; | ||
let viewRange = null; | ||
if (domRange) { | ||
viewRange = view.domConverter.domRangeToView(domRange); | ||
} | ||
const viewRange = view.domConverter.domRangeToView(domRange); | ||
else { | ||
// Fallback to create range in target element. It happens frequently on Safari browser. | ||
// See more: https://github.com/ckeditor/ckeditor5/issues/16978 | ||
viewRange = view.createRange(view.createPositionAt(domEventData.target, 0)); | ||
} | ||
if (!viewRange) { | ||
@@ -524,0 +533,0 @@ return null; |
Sorry, the diff of this file is too big to display
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
1392591
10661
+ Added@ckeditor/ckeditor5-core@43.1.0-alpha.6(transitive)
+ Added@ckeditor/ckeditor5-engine@43.1.0-alpha.6(transitive)
+ Added@ckeditor/ckeditor5-enter@43.1.0-alpha.6(transitive)
+ Added@ckeditor/ckeditor5-typing@43.1.0-alpha.6(transitive)
+ Added@ckeditor/ckeditor5-ui@43.1.0-alpha.6(transitive)
+ Added@ckeditor/ckeditor5-utils@43.1.0-alpha.6(transitive)
+ Added@ckeditor/ckeditor5-watchdog@43.1.0-alpha.6(transitive)
- Removed@ckeditor/ckeditor5-core@43.1.0-alpha.5(transitive)
- Removed@ckeditor/ckeditor5-engine@43.1.0-alpha.5(transitive)
- Removed@ckeditor/ckeditor5-enter@43.1.0-alpha.5(transitive)
- Removed@ckeditor/ckeditor5-typing@43.1.0-alpha.5(transitive)
- Removed@ckeditor/ckeditor5-ui@43.1.0-alpha.5(transitive)
- Removed@ckeditor/ckeditor5-utils@43.1.0-alpha.5(transitive)
- Removed@ckeditor/ckeditor5-watchdog@43.1.0-alpha.5(transitive)