Permalink
Browse files

Fixed error thrown in tests when the toolbar plugin isn't loaded. (#1…

…3305)
  • Loading branch information...
Reinmar committed May 20, 2015
1 parent bca0002 commit c59774cabb12584f7fc62e2c3c40235c0f2371f1
Showing with 2 additions and 1 deletion.
  1. +2 −1 plugins/clipboard/plugin.js
@@ -359,7 +359,8 @@
// Because of FF bug we need to use this hack, otherwise cursor is hidden
// or it is not possible to move it (#12420).
if ( CKEDITOR.env.gecko && data.method == 'drop' ) {
// Also, check that editor.toolbox exists, because the toolbar plugin might not be loaded (#13305).
if ( CKEDITOR.env.gecko && data.method == 'drop' && editor.toolbox ) {
editor.once( 'afterPaste', function() {
editor.toolbox.focus();
} );

0 comments on commit c59774c

Please sign in to comment.