This commit is contained in:
Peter Maquiran
2023-07-27 15:14:42 +01:00
parent c8fe85930b
commit e1b1f5e62a
6 changed files with 48 additions and 13 deletions
+17 -1
View File
@@ -30,4 +30,20 @@
#my-tinymce {
height: 200% !important;
}
}
editor {
height: 100% !important;
}
.tox-tinymce {
height: 100% !important;
}
+19
View File
@@ -26,6 +26,25 @@ export class TinyMCEPage implements OnInit {
) {
this.Document = this.navParams.get('Document')
this.content = this.navParams.get('content')
this.waitForTiny();
}
waitForTiny() {
const tiny: HTMLDivElement = document.querySelector('.tox-tinymce')
if(tiny) {
this.doneWaitForTiny(tiny)
} else {
setTimeout(() => {
this.waitForTiny()
}, 500)
}
}
doneWaitForTiny(tiny: HTMLDivElement) {
tiny.style.height = '100%'
}
ngOnInit() {