Created
December 25, 2023 22:20
-
-
Save alexisselorm/1cbdb773895b07c65b0e5adc154b65e1 to your computer and use it in GitHub Desktop.
app.component.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import { FormControl, FormGroup, Validators } from '@angular/forms'; | |
import Editor from 'ckeditor5/build/ckeditor'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'], | |
}) | |
export class AppComponent { | |
title = 'ckedior-image-upload-angular-net.client'; | |
constructor() {} | |
public editor = Editor; | |
form: FormGroup = new FormGroup({ | |
title: new FormControl('', Validators.required), | |
body: new FormControl('', Validators.required), | |
}); | |
onSubmit() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment