Skip to content

[4.2] codemirror full screen#38863

Merged
roland-d merged 4 commits intojoomla:4.2-devfrom
brianteeman:readonly
Oct 7, 2022
Merged

[4.2] codemirror full screen#38863
roland-d merged 4 commits intojoomla:4.2-devfrom
brianteeman:readonly

Conversation

@brianteeman
Copy link
Contributor

In com_templates if you display the original file as well as the override then you have two instances of codemirror with the original file as readonly. Both have the message "Press xx to toggle Full Screen editing" which doesnt make sense on a readonly instance of the editor and not surprisingly doesnt work.

This PR removes the message and associated options from the codemirror layout if the editor is defined as readonly in the xml

Actual result BEFORE applying this Pull Request

image

Expected result AFTER applying this Pull Request

image

In com_templates if you display the original file as well as the override then you have two instances of codemirror with the original file as readonly. Both have the message "Press xx to toggle Full Screen editing"  which not only doesnt make sense on a readonly instance of the editor and not surprisingly doesnt work.

This PR removes the message and associated options from the codemirror layout if the editor is defined as readonly in the xml
@Fedik
Copy link
Member

Fedik commented Oct 5, 2022

I have tested this item ✅ successfully on c944a91


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38863.

1 similar comment
@viocassel
Copy link
Contributor

I have tested this item ✅ successfully on c944a91


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38863.

@alikon
Copy link
Contributor

alikon commented Oct 6, 2022

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38863.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Oct 6, 2022
@roland-d roland-d merged commit faeebba into joomla:4.2-dev Oct 7, 2022
@roland-d
Copy link
Contributor

roland-d commented Oct 7, 2022

Thank you

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Oct 7, 2022
@roland-d roland-d added this to the Joomla! 4.2.4 milestone Oct 7, 2022
@brianteeman brianteeman deleted the readonly branch October 7, 2022 13:10
@RickR2H RickR2H mentioned this pull request Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

Comments