? Pending

User tests: Successful: Unsuccessful:

avatar okonomiyaki3000
okonomiyaki3000
14 Jun 2018

Summary of Changes

Improvement to editor mode autoselection.
Should now find the correct mode whether the option is set to a mode's name, mime-type, or extension.
Setting the mode is also improved, especially for php mode.

Testing Instructions

Use codemirror. Open as many document types as possible.
Especially try testing PHP documents before and after applying the patch.

Expected result

Mode should be selected correctly so that syntax highlighting and other mode-specific features should work normally.

Actual result

Before this change there is a problem with PHP documents. If they contain HTML sections, it will not be highlighted properly and features such as tag autoclosing will not work.

After this change, all is well.

Documentation Changes Required

Nope.

avatar okonomiyaki3000 okonomiyaki3000 - open - 14 Jun 2018
avatar okonomiyaki3000 okonomiyaki3000 - change - 14 Jun 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Jun 2018
Category Front End Plugins
avatar okonomiyaki3000
okonomiyaki3000 - comment - 14 Jun 2018

Appveyor failed because it took too long. It is not a problem with this change.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 16 Jun 2018

can this PR be tested as Appveyor failes?


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

avatar okonomiyaki3000
okonomiyaki3000 - comment - 16 Jun 2018

@franz-wohlkoenig Yes, you can ignore the Appveyor failure. It only failed because it timed out. Whatever reason it timed out surely has nothing to do with this PR.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 16 Jun 2018

@okonomiyaki3000 can you give please an Example of " PHP documents contain HTML sections" to test?

avatar okonomiyaki3000
okonomiyaki3000 - comment - 16 Jun 2018

For example: templates/protostar/index.php

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 16 Jun 2018 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 16 Jun 2018

I have tested this item successfully on 1d35273

Without PR:

without

With PR:

with


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20746.
avatar okonomiyaki3000
okonomiyaki3000 - comment - 16 Jun 2018

Yep, that's what I'm talking about.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 16 Jun 2018

@okonomiyaki3000 i showed Screenshots cause Tester maybe don't know how it should look.

avatar carlitorweb carlitorweb - test_item - 16 Jun 2018 - Tested successfully
avatar carlitorweb
carlitorweb - comment - 16 Jun 2018

I have tested this item successfully on 1d35273


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Jun 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 16 Jun 2018

Ready to Commit after two successful tests.

avatar mbabker mbabker - change - 18 Jun 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-06-18 02:48:59
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 18 Jun 2018
avatar mbabker mbabker - merge - 18 Jun 2018

Add a Comment

Login with GitHub to post a comment