1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-06-10 11:45:10 +02:00

codeeditor: fix broken syntax highlighting

This commit is contained in:
Kushagra Gour
2019-07-18 14:58:48 +05:30
parent a162c5e555
commit 2f3efb186b

View File

@ -161,8 +161,6 @@ export default class CodeEditor extends Component {
});
}
setLanguage(value) {
if (!window.monaco) return;
this.editorReadyDeferred.promise.then(() => {
if (this.props.type === 'monaco') {
monaco.editor.setModelLanguage(