? Pending

User tests: Successful: Unsuccessful:

avatar okonomiyaki3000
okonomiyaki3000
2 Feb 2018

The PHP mode in CodeMirror is wrongly defined
This results in the mode option being set wrong
Which gives us no syntax coloring for PHP
This fix works around the bug to set the right mode in php
Will also work for any other mode that is also wrongly defined as php is (if there is any)

Pull Request for Issue #19520 .

Summary of Changes

Need to check if a value which is expected to be a string is, in fact, an array (which is a bug in CodeMirror). If it is, deal with it.

Testing Instructions

Use CodeMirror to edit a PHP file.
By all means, test other types too.

Expected result

Should have proper syntax coloring.

Actual result

Before the patch: no syntax coloring for PHP.
After the patch: should have it.

Documentation Changes Required

Nope

avatar okonomiyaki3000 okonomiyaki3000 - open - 2 Feb 2018
avatar okonomiyaki3000 okonomiyaki3000 - change - 2 Feb 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Feb 2018
Category Front End Plugins
avatar GraySmog
GraySmog - comment - 2 Feb 2018

I have tested this item successfully on 83e2755

It works.
Without the patch, there's no syntax coloring in editor.

before

After putting the patch, syntax highlighting works properly.

after


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19522.
avatar GraySmog GraySmog - test_item - 2 Feb 2018 - Tested successfully
avatar Quy
Quy - comment - 2 Feb 2018

I have tested this item successfully on 83e2755


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

avatar Quy Quy - test_item - 2 Feb 2018 - Tested successfully
avatar Quy Quy - change - 2 Feb 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 2 Feb 2018

RTC


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

avatar okonomiyaki3000
okonomiyaki3000 - comment - 2 Feb 2018

While it's fine to use both, #19524 also fixes this issue.

avatar ggppdk
ggppdk - comment - 2 Feb 2018

I have tested this item successfully on 83e2755

Tested on Joomla template manager,
tested with PHP and other modes in custom extension

thanks


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

avatar ggppdk ggppdk - test_item - 2 Feb 2018 - Tested successfully
avatar brianteeman
brianteeman - comment - 2 Feb 2018

I am closing this as it is resolved in #19539 which is an official update from codemirror
thanks for creating this though

avatar brianteeman brianteeman - change - 2 Feb 2018
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2018-02-02 14:41:07
Closed_By brianteeman
Labels Added: ?
avatar brianteeman brianteeman - close - 2 Feb 2018
avatar ggppdk
ggppdk - comment - 2 Feb 2018

yes but will #19533 (official update from codemirror) be in J3.8.5 ?
i ll test that PR too

avatar brianteeman
brianteeman - comment - 2 Feb 2018

if it is tested then ofc

Add a Comment

Login with GitHub to post a comment