@ckeditor/ckeditor5-engine 47.4.0-alpha.4 → 47.4.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -17242,11 +17242,7 @@ ModelRange.prototype.is = function(type) {
17242
17242
  const hasCustomHandling = ancestors.some((element)=>{
17243
17243
  if (range.containsItem(element)) {
17244
17244
  const viewElement = mapper.toViewElement(element);
17245
- if (viewElement) {
17246
- return !!viewElement.getCustomProperty('addHighlight');
17247
- } else {
17248
- return false;
17249
- }
17245
+ return !!viewElement.getCustomProperty('addHighlight');
17250
17246
  }
17251
17247
  });
17252
17248
  return !hasCustomHandling;