Skip to content

Commit c59774c

Browse files
committed
Fixed error thrown in tests when the toolbar plugin isn't loaded. (#13305)
1 parent bca0002 commit c59774c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/clipboard/plugin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@
359359

360360
// Because of FF bug we need to use this hack, otherwise cursor is hidden
361361
// or it is not possible to move it (#12420).
362-
if ( CKEDITOR.env.gecko && data.method == 'drop' ) {
362+
// Also, check that editor.toolbox exists, because the toolbar plugin might not be loaded (#13305).
363+
if ( CKEDITOR.env.gecko && data.method == 'drop' && editor.toolbox ) {
363364
editor.once( 'afterPaste', function() {
364365
editor.toolbox.focus();
365366
} );

0 commit comments

Comments
 (0)