You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/code-editor/doc/index.en-US.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ You can set the default configuration of the `CodeEditor` component through the
91
91
92
92
| Parameter | Description | Type | Default |
93
93
| --- | --- | --- | --- |
94
-
| `assetsRoot` | Where should the component load resource of monaco editor | `string` \| `SageUrl` | - |
94
+
| `assetsRoot` | Where should the component load resource of monaco editor | `string` \| `SafeUrl` | - |
95
95
| `defaultEditorOption` | Default options. [Please refer to the doc of monaco editor](https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IEditorOptions.html) | `IEditorConstructionOptions` | `{}` |
96
96
| `onLoad` | The hook invoked when the resource of monaco editor is loaded. At this moment and afterwards the global variable `monaco` is usable (`window.MonacoEnvironment = { globalAP: true }` is required if monaco-editor's version is greater or equal to 0.22.0) | `() => void` | - |
97
97
| `onFirstEditorInit` | The hook invoked when the first monaco editor is initialized | `() => void` | - |
0 commit comments