mac下cmd+shift+c 不能调出toggle code

https://github.com/leanote/leanote/issues/248
This commit is contained in:
lealife committed 2015-10-30 13:52:50 +08:00
1 parent b0be7a14d2
commit 1844513f08
2 files changed
+5 -2

No files matched your search

@@ -50,6 +50,9 @@ tinymce.PluginManager.add('leanote_code', function(editor, url) {
// brush 刷子
function toggleCode(brush) {
if (LEA.readOnly) {
return;
}
ed = tinymce.activeEditor;
var node = ed.selection.getNode();
@@ -331,7 +334,7 @@ tinymce.PluginManager.add('leanote_code', function(editor, url) {
ed.addCommand('toggleCode', toggleCode);
ed.addShortcut('ctrl+shift+c', '', 'toggleCode');
ed.addShortcut('command+shift+c', '', 'toggleCode');
ed.addShortcut('meta+shift+c', '', 'toggleCode');
// life
if(LeaAce.canAce()) {