mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +01:00
Makes editor on main page writeable. (#3976)
This commit is contained in:
parent
584584e65b
commit
0c6348a71d
2 changed files with 2 additions and 0 deletions
|
|
@ -249,6 +249,7 @@ export class MonacoDiffEditor extends React.Component<
|
|||
minimap: { enabled: false },
|
||||
automaticLayout: false,
|
||||
theme: this.props.theme,
|
||||
originalEditable: true,
|
||||
});
|
||||
this.editor.setModel({
|
||||
original: this.props.originalModel,
|
||||
|
|
|
|||
|
|
@ -217,6 +217,7 @@ class EditorDemo extends React.Component {
|
|||
value={this.currentSample.value || "loading..."}
|
||||
language={this.currentLanguage?.id}
|
||||
theme={this.currentTheme.id}
|
||||
onDidValueChange={() => {}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue