mitydigital / statamic-tinymce-cloud

A Statamic fieldtype for TinyMCE using Tiny Cloud for Statamic 3.3+ and Statamic 4.0
https://docs.mity.com.au/tinymce-cloud
MIT License
2 stars 1 forks source link

Fullscreen not working properly #10

Open partenit opened 1 month ago

partenit commented 1 month ago

Bug description

1) not expanded on fullscreen 2) sidebar controls present above textarea

image

Steps to reproduce

press fullscreen button in tinymce toolbar or menu

Environment and versions

statamic 4.57.0
statamic-tinymce-cloud 2.1.3

Additional details

No response

martyf commented 1 month ago

I feel this is something that doesn't have an easy fix. Statamic's CP has lots of relative containers, and when trying to position to be full screen, it can't break outside those.

Different browsers exhibit different behaviours too - Firefox is different to how it appears in Webkit-based browsers.

Bard gets around this by creating a portal and sending it to there: but that's outside of the scope of what this addon is doing - it is designed to get Tiny Cloud in to Statamic - but not change or add to its functionality. A custom full screen plugin would need to be written that does more manipulation on the parent containers within Statamic when enabling/disabling.

Unless you have another idea to resolve the issue?