mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
60 lines
1.3 KiB
TypeScript
60 lines
1.3 KiB
TypeScript
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',
|
|
styleUrls: ['./tiny-mce.page.scss'],
|
|
})
|
|
export class TinyMCEPage implements OnInit {
|
|
|
|
|
|
|
|
title = '<h1>Hello, World!</h1><p>This is my HTML document.</p>';
|
|
Document: any
|
|
content: any
|
|
editorContent: string;
|
|
|
|
|
|
|
|
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)=>{
|
|
|
|
|
|
|
|
})
|
|
}
|
|
|
|
}
|