mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
change
This commit is contained in:
@@ -30,4 +30,20 @@
|
||||
|
||||
#my-tinymce {
|
||||
height: 200% !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
editor {
|
||||
|
||||
height: 100% !important;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.tox-tinymce {
|
||||
|
||||
height: 100% !important;
|
||||
|
||||
}
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user