We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c669a5 commit 21ec517Copy full SHA for 21ec517
components/code-editor/code-editor.service.ts
@@ -127,7 +127,8 @@ export class NzCodeEditorService implements OnDestroy {
127
const onLoad = (): void => {
128
cleanup();
129
windowAsAny.require.config({
130
- paths: { vs }
+ paths: { vs },
131
+ ...this.config.extraConfig
132
});
133
windowAsAny.require(['vs/editor/editor.main'], () => {
134
this.onLoad();
components/core/config/config.ts
@@ -110,6 +110,7 @@ export interface ButtonConfig {
110
111
export interface CodeEditorConfig {
112
assetsRoot?: string | SafeUrl;
113
+ extraConfig?: NzSafeAny;
114
defaultEditorOption?: NzSafeAny;
115
useStaticLoading?: boolean;
116
monacoEnvironment?: Environment;
0 commit comments