mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
draft document are been listed and open on tiny
This commit is contained in:
@@ -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)=>{
|
||||
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user