Skip to content

Commit e191f4b

Browse files
committed
Fixed inline widget is not draggable if selection is on ZWS.
1 parent e614c0a commit e191f4b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugins/widget/plugin.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2481,6 +2481,11 @@
24812481
// Block widgets are handled by Lineutils.
24822482
if ( widget.inline && target.type == CKEDITOR.NODE_ELEMENT && target.hasAttribute( 'data-cke-widget-drag-handler' ) ) {
24832483
mouseDownOnDragHandler = 1;
2484+
2485+
// #13284.
2486+
if ( widgetsRepo.focused != widget )
2487+
editor.getSelection().removeAllRanges();
2488+
24842489
return;
24852490
}
24862491

0 commit comments

Comments
 (0)