@ng-util/monaco-editor 21.0.0 → 21.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -24
- package/package.json +1 -1
- package/types/ng-util-monaco-editor.d.ts +1 -1
package/README.md
CHANGED
|
@@ -26,30 +26,6 @@ Install from npm repository:
|
|
|
26
26
|
npm install @ng-util/monaco-editor --save
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
**Configure monaco-editor library**
|
|
30
|
-
|
|
31
|
-
Currently this library only supports load monaco-editor with AMD mode. The default is to use cdn (`https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.20.0/min`) lazy loading。
|
|
32
|
-
|
|
33
|
-
If you are using local monaco editor library, you could add the following:
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
"assets": [
|
|
37
|
-
{
|
|
38
|
-
"glob": "**/*",
|
|
39
|
-
"input": "node_modules/monaco-editor/min/vs",
|
|
40
|
-
"output": "/lib/vs"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
And configure `baseUrl` via `NuMonacoEditorModule.forRoot`.
|
|
46
|
-
|
|
47
|
-
```ts
|
|
48
|
-
NuMonacoEditorModule.forRoot({
|
|
49
|
-
baseUrl: `lib`,
|
|
50
|
-
}),
|
|
51
|
-
```
|
|
52
|
-
|
|
53
29
|
### Sample
|
|
54
30
|
|
|
55
31
|
Include `NuMonacoEditorModule` in Main Module and Feature Modules where you want to use the editor component.(eg: app.module.ts):
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference path="
|
|
1
|
+
/// <reference path="../monaco.d.ts" />
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { InjectionToken, EnvironmentProviders, AfterViewInit, OnDestroy, ElementRef, DestroyRef } from '@angular/core';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|