Skip to content

Commit

Permalink
Fix code style issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Comandeer committed Feb 14, 2019
1 parent 117411d commit 5943004
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/copyformatting/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@
} );

editor.on( 'contentDom', function() {
var editable = editor.editable(),
var cmd = editor.getCommand( 'copyFormatting' ),
editable = editor.editable(),
// Host element for apply formatting click. In case of classic element it needs to be entire
// document, otherwise clicking in body margins would not trigger the event.
// Editors with divarea plugin enabled should be treated like inline one – otherwise
// clicking the whole document messes the focus.
mouseupHost = editable.isInline() ? editable : editor.document,
copyFormattingButton = editor.ui.get( 'CopyFormatting' ),
copyFormattingButtonEl,
cmd = editor.getCommand( 'copyFormatting' );
copyFormattingButtonEl;

editable.attachListener( mouseupHost, 'mouseup', function( evt ) {
// Apply formatting only if any styles are copied (#2780, #2655, #2470).
Expand Down

0 comments on commit 5943004

Please sign in to comment.