improve edition of draft

This commit is contained in:
Eudes Inácio
2023-07-10 12:38:41 +01:00
parent 9676bab7eb
commit c69ea92c91
11 changed files with 124 additions and 33 deletions
+2 -3
View File
@@ -33,7 +33,6 @@ apiKey="wr5dk69kive0qr9ig6y5spqvlj3a0tsiwnzdsexnz241k69p"
alignleft aligncenter alignright alignjustify | \
bullist numlist outdent indent | removeformat | print | help' }"
initialValue='{{content}}'
[(ngModel)]="editorContent"
[(ngModel)]="content"
(onSaveContent)="somefunction()"
></editor>
<button (click)="somefunction()">Save Content</button>
></editor>
+7 -5
View File
@@ -11,10 +11,11 @@ export class TinyMCEPage implements OnInit {
title = '<h1>Hello, World!</h1><p>This is my HTML document.</p>';
title = '<p><img style="display: block; margin-left: auto; margin-right: auto;" src="assets/TempImgs/TCROUND.png" alt="" width="102" height="104" />Just Testing with an image yoOH.</p>';
Document: any
content: any
content: string
editorContent: string;
value: string;
@@ -28,6 +29,7 @@ export class TinyMCEPage implements OnInit {
}
ngOnInit() {
this.value = ""
}
close() {
@@ -35,7 +37,7 @@ export class TinyMCEPage implements OnInit {
}
somefunction() {
console.log(this.title)
console.log(this.content)
}
async openOptions() {
@@ -43,8 +45,8 @@ export class TinyMCEPage implements OnInit {
component: EventDetailsDocumentsOptionsPage,
cssClass: 'model aside-modal search-submodal',
componentProps: {
/* fulltask: this.task,
task: this.task */
Document: this.Document,
content: this.content
}
});
await modal.present();