Try HTML editor component for description, didn't work out yet, need to play with it a bit more

This commit is contained in:
aditya.chandel
2025-01-04 20:21:43 -07:00
parent 34f177748f
commit 22aeab2d8b
3 changed files with 5 additions and 3 deletions
@@ -78,6 +78,7 @@
<div class="flex flex-row w-full gap-4 mt-2 pb-1"> <div class="flex flex-row w-full gap-4 mt-2 pb-1">
<div class="flex flex-col gap-1 w-full"> <div class="flex flex-col gap-1 w-full">
<label for="description">Description</label> <label for="description">Description</label>
<!--<p-editor class="w-full" formControlName="description" id="description" [style]="{ height: '18rem' }" />-->
<textarea rows="12" pTextarea id="description" formControlName="description" class="w-full"></textarea> <textarea rows="12" pTextarea id="description" formControlName="description" class="w-full"></textarea>
</div> </div>
</div> </div>
@@ -11,6 +11,7 @@ import {AsyncPipe, NgIf} from '@angular/common';
import {BookService} from '../../book/service/book.service'; import {BookService} from '../../book/service/book.service';
import {BookMetadataBI} from '../../book/model/book-metadata-for-book-info.model'; import {BookMetadataBI} from '../../book/model/book-metadata-for-book-info.model';
import {MessageService} from 'primeng/api'; import {MessageService} from 'primeng/api';
import {Editor} from 'primeng/editor';
@Component({ @Component({
selector: 'app-metadata-editor', selector: 'app-metadata-editor',
@@ -26,7 +27,8 @@ import {MessageService} from 'primeng/api';
FormsModule, FormsModule,
AsyncPipe, AsyncPipe,
NgIf, NgIf,
ReactiveFormsModule ReactiveFormsModule,
Editor
] ]
}) })
export class MetadataEditorComponent implements OnInit { export class MetadataEditorComponent implements OnInit {
@@ -19,7 +19,6 @@
</div> </div>
</div> </div>
<div class="flex items-center"> <div class="flex items-center">
<p class="font-semibold text-lg">Authors:</p> <p class="font-semibold text-lg">Authors:</p>
<div class="flex flex-wrap gap-2 ml-2"> <div class="flex flex-wrap gap-2 ml-2">