0
在我的代碼,我創建了以下這樣一個編輯:如何將摩納哥編輯器從只讀狀態設置爲可寫狀態?
this.monacoEditor = monaco.editor
.create(
document.getElementById('ide'), {
model: null,
readOnly: true,
contextmenu: false,
}
);
所以,現在的編輯器是隻讀的。我如何將this.monacoEditor
更改爲可寫/可編輯?