mirror of
https://github.com/chinchang/web-maker.git
synced 2025-06-12 04:31:35 +02:00
codeeditor: fix broken syntax highlighting
This commit is contained in:
@ -161,8 +161,6 @@ export default class CodeEditor extends Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
setLanguage(value) {
|
setLanguage(value) {
|
||||||
if (!window.monaco) return;
|
|
||||||
|
|
||||||
this.editorReadyDeferred.promise.then(() => {
|
this.editorReadyDeferred.promise.then(() => {
|
||||||
if (this.props.type === 'monaco') {
|
if (this.props.type === 'monaco') {
|
||||||
monaco.editor.setModelLanguage(
|
monaco.editor.setModelLanguage(
|
||||||
|
Reference in New Issue
Block a user