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:
@ -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(
|
||||
|
Reference in New Issue
Block a user