Skip to content

Commit 0b15e93

Browse files
author
Piotr Jasiun
committed
Code style.
1 parent d2c306d commit 0b15e93

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

plugins/undo/plugin.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
state: CKEDITOR.TRISTATE_DISABLED,
2626
canUndo: false
27-
});
27+
} );
2828

2929
var redoCommand = editor.addCommand( 'redo', {
3030
exec: function() {
@@ -35,7 +35,7 @@
3535
},
3636
state: CKEDITOR.TRISTATE_DISABLED,
3737
canUndo: false
38-
});
38+
} );
3939

4040
editor.setKeystroke( [
4141
[ CKEDITOR.CTRL + 90 /*Z*/, 'undo' ],
@@ -61,28 +61,27 @@
6161
// Save snapshots before doing custom changes.
6262
editor.on( 'saveSnapshot', function( evt ) {
6363
undoManager.save( evt.data && evt.data.contentOnly );
64-
});
64+
} );
6565

6666
// Registering keydown on every document recreation.(#3844)
6767
editor.on( 'contentDom', function() {
6868
editor.editable().on( 'keydown', function( event ) {
6969
var keystroke = event.data.getKey();
7070

71-
if ( keystroke == 8 /*Backspace*/ || keystroke == 46 /*Delete*/ ) {
71+
if ( keystroke == 8 /*Backspace*/ || keystroke == 46 /*Delete*/ )
7272
undoManager.type( keystroke, 0 );
73-
}
74-
});
73+
} );
7574

7675
editor.editable().on( 'keypress', function( event ) {
7776
undoManager.type( event.data.getKey(), 1 );
78-
});
79-
});
77+
} );
78+
} );
8079

8180
// Always save an undo snapshot - the previous mode might have
8281
// changed editor contents.
8382
editor.on( 'beforeModeUnload', function() {
8483
editor.mode == 'wysiwyg' && undoManager.save( true );
85-
});
84+
} );
8685

8786
function toggleUndoManager() {
8887
undoManager.enabled = editor.readOnly ? false : editor.mode == 'wysiwyg';
@@ -100,13 +99,13 @@
10099
label: editor.lang.undo.undo,
101100
command: 'undo',
102101
toolbar: 'undo,10'
103-
});
102+
} );
104103

105104
editor.ui.addButton( 'Redo', {
106105
label: editor.lang.undo.redo,
107106
command: 'redo',
108107
toolbar: 'undo,20'
109-
});
108+
} );
110109
}
111110

112111
/**
@@ -140,7 +139,7 @@
140139
editor.on( 'updateSnapshot', function() {
141140
if ( undoManager.currentImage )
142141
undoManager.update();
143-
});
142+
} );
144143

145144
/**
146145
* Lock manager to prevent any save/update operations.
@@ -170,7 +169,7 @@
170169
*/
171170
editor.on( 'unlockSnapshot', undoManager.unlock, undoManager );
172171
}
173-
});
172+
} );
174173

175174
CKEDITOR.plugins.undo = {};
176175

0 commit comments

Comments
 (0)