Skip to content

Commit

Permalink
Fixed error thrown in tests when the toolbar plugin isn't loaded. (#1…
Browse files Browse the repository at this point in the history
…3305)
  • Loading branch information
Reinmar committed May 20, 2015
1 parent bca0002 commit c59774c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/clipboard/plugin.js
Expand Up @@ -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();
} );
Expand Down

0 comments on commit c59774c

Please sign in to comment.