Ticket #17133: 17133.diff
| File 17133.diff, 748 bytes (added by , 7 years ago) |
|---|
-
src/js/_enqueues/wp/theme-plugin-editor.js
403 403 editor = wp.codeEditor.initialize( $( '#newcontent' ), codeEditorSettings ); 404 404 editor.codemirror.on( 'change', component.onChange ); 405 405 406 editor.codemirror.setOption( 'extraKeys', { 407 'Ctrl-S': function () { 408 component.form.submit(); 409 }, 410 'Cmd-S': function () { 411 component.form.submit(); 412 } 413 }); 414 406 415 // Improve the editor accessibility. 407 416 $( editor.codemirror.display.lineDiv ) 408 417 .attr({