update styling and clean up demos
This commit is contained in:
parent
5894667b41
commit
63551228ee
20 changed files with 235 additions and 212 deletions
|
|
@ -33,7 +33,8 @@ define(function(require, exports, module) {
|
|||
"use strict";
|
||||
|
||||
require("ace/lib/fixoldbrowsers");
|
||||
require("ace/config").init();
|
||||
var config = require("ace/config");
|
||||
config.init();
|
||||
var env = {};
|
||||
|
||||
var dom = require("ace/lib/dom");
|
||||
|
|
@ -151,6 +152,15 @@ env.editor.commands.addCommands([{
|
|||
editor.cmdLine.setValue(r + "")
|
||||
},
|
||||
readOnly: true
|
||||
}, {
|
||||
name: "showKeyboardShortcuts",
|
||||
bindKey: {win: "Ctrl-Alt-h", mac: "Command-Alt-h"},
|
||||
exec: function(editor) {
|
||||
config.loadModule("ace/ext/keybinding_menu", function(module) {
|
||||
module.init(editor);
|
||||
editor.showKeyboardShortcuts()
|
||||
})
|
||||
}
|
||||
}]);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue