You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
577 B
27 lines
577 B
import {Component, Input} from '@angular/core';
|
|
import {ModalController} from '@ionic/angular';
|
|
|
|
@Component({
|
|
selector: 'editor-wysiwyg-modal',
|
|
templateUrl: './wysiwyg-modal.component.html',
|
|
styleUrls: ['./wysiwyg-modal.component.scss'],
|
|
})
|
|
export class WysiwygModalComponent {
|
|
@Input() value = '';
|
|
@Input() title: string;
|
|
|
|
constructor(
|
|
protected modals: ModalController,
|
|
) {}
|
|
|
|
dismissModal() {
|
|
this.modals.dismiss(this.value);
|
|
}
|
|
|
|
onContentsChanged(contents: string) {
|
|
if ( this.value !== contents ) {
|
|
this.value = contents;
|
|
}
|
|
}
|
|
}
|