kopia lustrzana https://github.com/c9/core
fix emmet in ejs mode
rodzic
0abbb60735
commit
172dba514e
|
@ -411,7 +411,7 @@ exports.isAvailable = function(editor, command) {
|
||||||
// TODO refactor mode delegates to make this simpler
|
// TODO refactor mode delegates to make this simpler
|
||||||
try {
|
try {
|
||||||
editorProxy.setupContext(editor);
|
editorProxy.setupContext(editor);
|
||||||
if (/js|php/.test(editorProxy.getSyntax()))
|
if (/^(js|php)/.test(editorProxy.getSyntax()))
|
||||||
isSupported = false;
|
isSupported = false;
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue