?
Referenced as Pull Request for: # 7325
avatar e404-gh
e404-gh
2 Jul 2015

Steps to reproduce the issue

Update Joomla! from 3.4.1 to 3.4.2

Expected result

Codemirror editor run in fullscreen mode with shortcut (default F10)

Actual result

Editor Codemirror doesn't go in fullscreen mode and overlaps the page or adapts to the contents of the text area

System information

3.4.2 (Joomla Platform 13.1.0 Stable) , PHP 5.4.36, 5.5.5-10.0.15-MariaDB-wsrep, nginx/1.6.2

Additional comments

It would seem a problem of css code.
If we compare codemirror.min.css file versions (media/editors/codemirror/lib/codemirror.min.css), content in Joomla! 3.4.1 and 3.4.2, seems missing some line of code relating to class "CodeMirror-fullscreen" (and maybe also something else)

avatar e404-gh e404-gh - open - 2 Jul 2015
avatar Fedik
Fedik - comment - 2 Jul 2015

can confirm,
in 3.4.1 F10 toggle "fullscreen" , in 3.4.2/3.4.3 does not

avatar Fedik
Fedik - comment - 2 Jul 2015

@okonomiyaki3000 maybe you know what happened with Codemirror since 3.4.1? ?

ps: #7284 does not fix the problem

avatar zero-24 zero-24 - change - 2 Jul 2015
Labels Added: ?
avatar okonomiyaki3000
okonomiyaki3000 - comment - 3 Jul 2015

Hmm. I'll have a look.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 3 Jul 2015

I see the problem. I'll have a fix ready soon.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 3 Jul 2015

Here you go #7325

avatar e404-gh
e404-gh - comment - 3 Jul 2015

@okonomiyaki3000
okay, now CodeMirror run in full screen mode, we hope that the fix is included in the next version of Joomla!

avatar okonomiyaki3000
okonomiyaki3000 - comment - 3 Jul 2015

@e404-gh Until a release is out with this fix, there are a couple of ways you could fix it on your sites if you don't feel like waiting.

You can implement the fix exactly as I have, by editing plugins/editors/codemirror/codemirror.php add this on line 73 (really anywhere in the onInit function):

JHtml::_('stylesheet', $this->basePath . 'lib/addons.min.css');

Alternatively, you could append the contents of
media/editors/codemirror/lib/addons.min.css to media/editors/codemirror/lib/codemirror.min.css
and
media/editors/codemirror/lib/addons.css to media/editors/codemirror/lib/codemirror.css

avatar zero-24 zero-24 - close - 3 Jul 2015
avatar zero-24
zero-24 - comment - 3 Jul 2015

Closing as we have a RTC PR. Thanks!

avatar zero-24 zero-24 - change - 3 Jul 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-07-03 10:21:15
Closed_By zero-24
avatar zero-24 zero-24 - close - 3 Jul 2015
avatar andre-merzky
andre-merzky - comment - 13 Jul 2016

The issue seems to have reappeared in Joomla! 3.6.0 Stable (or earlier), and the fixes described above don't seem to solve the issue at this point. Do you happen to have any advice? Thanks!

avatar brianteeman
brianteeman - comment - 13 Jul 2016

Its working perfectly for me - please use the forum for support http://forum.joomla.org

avatar andre-merzky
andre-merzky - comment - 14 Jul 2016

thanks, will do!

Add a Comment

Login with GitHub to post a comment