draft document are been listed and open on tiny

This commit is contained in:
Eudes Inácio
2023-07-06 12:20:57 +01:00
parent 01324ad022
commit e227f0d683
17 changed files with 288 additions and 56 deletions
+44 -3
View File
@@ -1,5 +1,7 @@
import { Component, OnInit } from '@angular/core';
import { NavParams } from '@ionic/angular';
import { EventDetailsDocumentsOptionsPage } from '../shared/popover/event-details-documents-options/event-details-documents-options.page';
import { AlertController, ModalController } from '@ionic/angular';
@Component({
selector: 'app-tiny-mce',
templateUrl: './tiny-mce.page.html',
@@ -7,12 +9,51 @@ import { Component, OnInit } from '@angular/core';
})
export class TinyMCEPage implements OnInit {
initialContent = '<h1>Hello, World!</h1><p>This is my HTML document.</p>';
title = '<h1>Hello, World!</h1><p>This is my HTML document.</p>';
Document: any
content: any
editorContent: string;
constructor() { }
constructor(
private navParams: NavParams,
private modalController: ModalController,
) {
this.Document = this.navParams.get('Document')
this.content = this.navParams.get('content')
}
ngOnInit() {
}
close() {
throw new Error('Method not implemented.');
}
somefunction() {
console.log(this.title)
}
async openOptions() {
const modal = await this.modalController.create({
component: EventDetailsDocumentsOptionsPage,
cssClass: 'model aside-modal search-submodal',
componentProps: {
/* fulltask: this.task,
task: this.task */
}
});
await modal.present();
modal.onDidDismiss().then((res)=>{
})
}
}