Index: trunk/extensions/CodeEditor/modules/jquery.codeEditor.js |
— | — | @@ -92,6 +92,15 @@ |
93 | 93 | var map = {js: 'javascript', css: 'css'}; |
94 | 94 | var lang = map[ext]; |
95 | 95 | |
| 96 | + // Disable some annoying commands |
| 97 | + // This doesn't seem to work; filed as https://github.com/ajaxorg/ace/issues/294 |
| 98 | + var canon = require('pilot/canon'); |
| 99 | + //console.log(canon.getCommandNames()); |
| 100 | + canon.removeCommand('replace'); // ctrl+R |
| 101 | + canon.removeCommand('transposeletters'); // ctrl+T |
| 102 | + canon.removeCommand('gotoline'); // ctrl+L |
| 103 | + //console.log(canon.getCommandNames()); |
| 104 | + |
96 | 105 | // Ace doesn't like replacing a textarea directly. |
97 | 106 | // We'll stub this out to sit on top of it... |
98 | 107 | // line-height is needed to compensate for oddity in WikiEditor extension, which zeroes the line-height on a parent container |