Try HTML editor component for description, didn't work out yet, need to play with it a bit more
This commit is contained in:
+2
-1
@@ -7,7 +7,7 @@
|
|||||||
<p-image [src]="coverImageSrc(bookMetadata.bookId)" alt="Image" width="225"></p-image>
|
<p-image [src]="coverImageSrc(bookMetadata.bookId)" alt="Image" width="225"></p-image>
|
||||||
|
|
||||||
<div class="flex flex-col flex-grow pl-2">
|
<div class="flex flex-col flex-grow pl-2">
|
||||||
|
|
||||||
<div class="flex flex-row w-full gap-4 pb-1">
|
<div class="flex flex-row w-full gap-4 pb-1">
|
||||||
<div class="flex flex-col gap-1 w-2/3">
|
<div class="flex flex-col gap-1 w-2/3">
|
||||||
<label for="title">Title</label>
|
<label for="title">Title</label>
|
||||||
@@ -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>
|
||||||
|
|||||||
+3
-1
@@ -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 {
|
||||||
|
|||||||
-1
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user