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
{{ message }}
Repository navigation
Commit 24547c6
Browse filesBrowse the repository at this point in the historyBrowse files
|`[nzEditorMode]`| Mode of monaco editor |`normal`\|`diff`|`normal`|
73
+
|`[nzLoading]`| Show the loading spin |`boolean`|`false`|
74
+
|`[nzOriginalText]`| The content of the left editor in `diff` mode |`boolean`|`false`|
75
+
|`[nzFullControl]`| Enable full control mode. User should manage `TextModel` manually in this mode |`boolean`|`false`|
76
+
|`[nzEditorOption]`|[Please refer to the doc of monaco editor](https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.ieditorconstructionoptions.html)|`IEditorConstructionOptions`|`{}`|
77
+
|`[nzToolkit]`| A placeholder for adding some quick actions |`TemplateRef<void>`| -|
78
+
|`(nzEditorInitialized)`| The event that a code editor is initialized |`IStandaloneCodeEditor`\|`IStandaloneDiffEditor`| -|
|`layout()`| Force monaco editor to re-render itself |
85
85
86
86
### Global Configuration
@@ -89,11 +89,11 @@ You can set the default configuration of the `CodeEditor` component through the
89
89
90
90
#### CodeEditorConfig
91
91
92
-
| Parameter | Description | Type | Default |
93
-
| --- | --- | --- | --- |
94
-
| `assetsRoot` | Where should the component load resource of monaco editor | `string` \| `SafeUrl` | - |
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
-
| `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
-
| `onFirstEditorInit` | The hook invoked when the first monaco editor is initialized | `() => void` | - |
98
-
| `onInit` | The hook invoked every time a monaco editor is initialized | `() => void` | - |
|`assetsRoot`| Where should the component load resource of monaco editor |`string`\|`SafeUrl`| -|
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
+
|`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
+
|`onFirstEditorInit`| The hook invoked when the first monaco editor is initialized |`() => void`| -|
98
+
|`onInit`| The hook invoked every time a monaco editor is initialized |`() => void`| -|
0 commit comments