Skip to content

Commit

Permalink
Fix unit test for IE8. Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Comandeer committed Feb 14, 2019
1 parent 8e80efc commit 117411d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/plugins/copyformatting/undointegration.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
( function() {
'use strict';

var leftMouseButton = CKEDITOR.env.ie && CKEDITOR.env.version < 9 ? 1 : CKEDITOR.MOUSE_BUTTON_LEFT;

bender.editor = {
config: {
allowedcontent: true
allowedContent: true
}
};

Expand All @@ -30,7 +32,7 @@
for ( var i = 0; i < editor.undoManager.limit; i++ ) {
sel.selectElement( i % 2 ? el1 : el2 );
editor.document.fire( 'mouseup', new CKEDITOR.dom.event( {
button: CKEDITOR.MOUSE_BUTTON_LEFT,
button: leftMouseButton,
target: editor.editable()
} ) );
}
Expand All @@ -50,7 +52,7 @@

sel.selectElement( editor.editable().findOne( '#one' ) );
editor.document.fire( 'mouseup', new CKEDITOR.dom.event( {
button: CKEDITOR.MOUSE_BUTTON_LEFT,
button: leftMouseButton,
target: editor.editable()
} ) );

Expand Down

0 comments on commit 117411d

Please sign in to comment.