Skip to content

IBX-8837: Distraction free mode: Text obstruction by toolbar's fixed position#1361

Merged
dew326 merged 4 commits into4.6from
IBX-8837
Dec 16, 2024
Merged

IBX-8837: Distraction free mode: Text obstruction by toolbar's fixed position#1361
dew326 merged 4 commits into4.6from
IBX-8837

Conversation

@GrabowskiM
Copy link
Contributor

@GrabowskiM GrabowskiM commented Oct 9, 2024

🎫 Issue IBX-8837

Description:

This bug is caused by CKEditor code itself, I've created issue there ckeditor/ckeditor5#17241 but I doubt it will be resolved soon (if ever), judging from my experience, so here's fix for it.

I'm basically temporarly removing styles that breaks supossed correct behaviour, as distraction free mode takes whole page, it doesn't matter what happens beneath, as it's not visible. When closing DFM I restore remove my inline styles/restore previous inline styles

For QA:

This solves https://issues.ibexa.co/browse/IBX-8965 as well, I think.

Documentation:

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 9, 2024

@GrabowskiM GrabowskiM requested a review from OstafinL October 18, 2024 08:47
if (active) {
let parentElement = activeFieldEdit.parentNode;

while (parentElement && parentElement !== doc.body) {
Copy link
Contributor

@tischsoic tischsoic Oct 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this new fragment may be more readable if split into two functions e.g. resetAncestorsPositions(), restoreAncestorsPositions()

Copy link
Contributor

@OstafinL OstafinL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, Besides Kuba's comment https://github.com/ibexa/admin-ui/pull/1361/files#r1806371839 which I agree with :)

@GrabowskiM GrabowskiM force-pushed the IBX-8837 branch 3 times, most recently from 7960cde to 9d19535 Compare November 27, 2024 16:44
@juskora juskora force-pushed the IBX-8837 branch 2 times, most recently from 34dd909 to 4329fb1 Compare December 11, 2024 10:27
@sonarqubecloud
Copy link

@juskora
Copy link
Contributor

juskora commented Dec 16, 2024

QA Approved on Ibexa DXP Commerce 4.6-dev.

@dew326 dew326 merged commit fc748c7 into 4.6 Dec 16, 2024
@dew326 dew326 deleted the IBX-8837 branch December 16, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants