Skip to content

Instantly share code, notes, and snippets.

@alexisselorm
Created December 25, 2023 22:20
Show Gist options
  • Save alexisselorm/1cbdb773895b07c65b0e5adc154b65e1 to your computer and use it in GitHub Desktop.
Save alexisselorm/1cbdb773895b07c65b0e5adc154b65e1 to your computer and use it in GitHub Desktop.
app.component.ts
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