Skip to content

Commit 1340ba7

Browse files
authored
Merge pull request #474 from kolkov/v13-downgrade
V13 downgrade + font awesome local serving
2 parents f20913f + db60863 commit 1340ba7

16 files changed

+15666
-18094
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ before_install:
1212
install:
1313
- npm install
1414
before_script:
15-
- npm install -g @angular/cli
15+
- npm install -g @angular/cli@13
1616
- npm install -g codecov
1717
script:
1818
- npm run lint:lib

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@ editorConfig: AngularEditorConfig = {
126126
```
127127
For `ngModel` to work, you must import `FormsModule` from `@angular/forms`, or for `formControlName`, you must import `ReactiveFormsModule` from `@angular/forms`
128128

129+
To serve the fontawesome files, ensure that your angular.json contains the following asset configuration:
130+
131+
```
132+
{
133+
"glob": "**/*",
134+
"input": "./node_modules/@kolkov/angular-editor/assets/",
135+
"output": "./assets/fonts/"
136+
}
137+
```
138+
129139
### Custom buttons
130140

131141
You can define your custom buttons with custom actions using executeCommandFn. It accepts commands from [execCommand](https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand).

angular.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@
6666
"tsConfig": "projects/angular-editor-app/tsconfig.app.json",
6767
"assets": [
6868
"projects/angular-editor-app/src/favicon.ico",
69-
"projects/angular-editor-app/src/assets"
69+
"projects/angular-editor-app/src/assets",
70+
{
71+
"glob": "**/*",
72+
"input": "node_modules/font-awesome/fonts",
73+
"output": "assets/fonts/"
74+
}
7075
],
7176
"styles": [
7277
"projects/angular-editor-app/src/styles.scss"

0 commit comments

Comments
 (0)