Ticket #17133: 17133.patch
| File 17133.patch, 736 bytes (added by , 8 years ago) |
|---|
-
src/wp-admin/js/theme-plugin-editor.js
388 388 editor = wp.codeEditor.initialize( $( '#newcontent' ), codeEditorSettings ); 389 389 editor.codemirror.on( 'change', component.onChange ); 390 390 391 editor.codemirror.setOption( 'extraKeys', { 392 'Ctrl-S': function () { 393 component.form.submit(); 394 }, 395 'Cmd-S': function () { 396 component.form.submit(); 397 } 398 }); 399 391 400 // Improve the editor accessibility. 392 401 $( editor.codemirror.display.lineDiv ) 393 402 .attr({