2014-04-15 23:16:08 +00:00
|
|
|
{
|
2014-04-16 23:29:51 +00:00
|
|
|
'mod+b': bindPagedownButton('bold'),
|
|
|
|
'mod+i': bindPagedownButton('italic'),
|
|
|
|
'mod+l': bindPagedownButton('link'),
|
|
|
|
'mod+q': bindPagedownButton('quote'),
|
|
|
|
'mod+k': bindPagedownButton('code'),
|
|
|
|
'mod+g': bindPagedownButton('image'),
|
|
|
|
'mod+o': bindPagedownButton('olist'),
|
|
|
|
'mod+u': bindPagedownButton('ulist'),
|
|
|
|
'mod+h': bindPagedownButton('heading'),
|
|
|
|
'mod+r': bindPagedownButton('hr'),
|
|
|
|
'mod+z': bindPagedownButton('undo'),
|
|
|
|
'mod+y': bindPagedownButton('redo'),
|
|
|
|
'mod+shift+z': bindPagedownButton('redo'),
|
|
|
|
'mod+d': function(evt) {
|
|
|
|
$('.button-open-discussion').click();
|
|
|
|
evt.preventDefault();
|
2014-04-15 23:16:08 +00:00
|
|
|
},
|
2014-04-16 23:29:51 +00:00
|
|
|
'= = > space': function() {
|
|
|
|
setTimeout(function() {
|
|
|
|
require('editor').replacePreviousText('==> ', '⇒ ');
|
|
|
|
}, 0);
|
2014-04-15 23:16:08 +00:00
|
|
|
},
|
2014-04-16 23:29:51 +00:00
|
|
|
'< = = space': function() {
|
|
|
|
setTimeout(function() {
|
|
|
|
require('editor').replacePreviousText('<== ', '⇐ ');
|
|
|
|
}, 0);
|
2014-04-15 23:16:08 +00:00
|
|
|
},
|
|
|
|
'S t a c k E d i t': function() {
|
2014-04-16 23:29:51 +00:00
|
|
|
eventMgr.onMessage("You are stunned!!! Aren't you?");
|
2014-04-15 23:16:08 +00:00
|
|
|
}
|
|
|
|
}
|