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

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

View File

@ -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()) {