Skip to content

Commit d580ea8

Browse files
committed
added angular fontawesome and removed assets
1 parent 7f4b3cd commit d580ea8

17 files changed

Lines changed: 134 additions & 2734 deletions

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
"@angular/platform-browser": "^13",
3030
"@angular/platform-browser-dynamic": "^13",
3131
"@angular/router": "^13",
32-
"font-awesome": "^4.7.0",
32+
"@fortawesome/angular-fontawesome": "^0.10.2",
33+
"@fortawesome/free-brands-svg-icons": "^6.6.0",
34+
"@fortawesome/free-solid-svg-icons": "^6.6.0",
3335
"rxjs": "~6.5.4",
3436
"tslib": "^2.4.0",
3537
"zone.js": "~0.11.4"

projects/angular-editor-app/src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h1>Angular Editor</h1>
99
(blur)="onBlur($event)">
1010
<ng-template #customButtons let-executeCommandFn="executeCommandFn">
1111
<ae-toolbar-set>
12-
<ae-button iconClass="fa fa-html5" title="Angular editor logo" (buttonClick)="executeCommandFn('insertHtml', angularEditorLogo)"></ae-button>
12+
<ae-button [icon]="faHtml5" title="Angular editor logo" (buttonClick)="executeCommandFn('insertHtml', angularEditorLogo)"></ae-button>
1313
</ae-toolbar-set>
1414
</ng-template>
1515
</angular-editor>

projects/angular-editor-app/src/app/app.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Component, OnInit } from '@angular/core';
22
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
33
import { AngularEditorConfig } from 'angular-editor';
4-
54
const ANGULAR_EDITOR_LOGO_URL = 'https://raw.githubusercontent.com/kolkov/angular-editor/master/docs/angular-editor-logo.png?raw=true'
5+
import { faHtml5 } from '@fortawesome/free-brands-svg-icons';
66

77
@Component({
88
selector: 'app-root',
@@ -13,7 +13,7 @@ export class AppComponent implements OnInit {
1313
title = 'app';
1414

1515
form: FormGroup;
16-
16+
faHtml5 = faHtml5
1717
htmlContent1 = '';
1818
htmlContent2 = '';
1919
angularEditorLogo = `<img alt="angular editor logo" src="${ANGULAR_EDITOR_LOGO_URL}">`;

projects/angular-editor-app/src/app/app.module.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { AppComponent } from './app.component';
55
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
66
import {HttpClientModule} from '@angular/common/http';
77
import {AngularEditorModule} from '../../../angular-editor/src/lib/angular-editor.module';
8+
import { FaIconLibrary } from '@fortawesome/angular-fontawesome';
9+
import { fab } from '@fortawesome/free-brands-svg-icons';
10+
import { fas } from '@fortawesome/free-solid-svg-icons';
811

912

1013
@NgModule({
@@ -21,4 +24,6 @@ import {AngularEditorModule} from '../../../angular-editor/src/lib/angular-edito
2124
providers: [],
2225
bootstrap: [AppComponent]
2326
})
24-
export class AppModule { }
27+
export class AppModule {
28+
29+
}
-132 KB
Binary file not shown.
-162 KB
Binary file not shown.

projects/angular-editor/assets/fontawesome-webfont.svg

Lines changed: 0 additions & 2671 deletions
This file was deleted.
-162 KB
Binary file not shown.
-95.7 KB
Binary file not shown.
-75.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)