? Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
20 Jul 2018

Pull Request for Issue # .

Summary of Changes

  • update webcomponentjs (the polyfills) to the latest version (2.0.3)
  • remove the hacked tabs custom element from media/system/webcomponents
  • Fix the two known bugs for tabs (appendChild instead of append and tabs.id instead of tabs.hash)

Testing Instructions

Apply patch (probably won't work with patchtester)
Edit an article
Check the tabs functionality
Save Check the alert element
exit and re-edit the same article, observe that the tabstate is kept

Expected result

Actual result

Documentation Changes Required

@wilsonge

avatar dgrammatiko dgrammatiko - open - 20 Jul 2018
avatar dgrammatiko dgrammatiko - change - 20 Jul 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jul 2018
Category Repository Layout Libraries JavaScript
avatar astridx astridx - test_item - 20 Jul 2018 - Tested successfully
avatar astridx
astridx - comment - 20 Jul 2018

I have tested this item successfully on 56722dc

Before and after I applied the patch I could edit an article and if I check the tabs functionality everything was OK.
I closed and re-edit the same article - the tabstate is kept.

I spotted that the file /media/vendor/joomla-custom-elements/js/joomla-tab.js should not be minimized. And it would be great if you could explain why this files for joomla-tab are in the folder /media/vendor/joomla-custom-elements/js and not in the folder /media/system/webcomponents/js


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

avatar brianteeman
brianteeman - comment - 20 Jul 2018

Tested in chrome - all good
Tested in IE11 - the tabs are present now BUT now the editor doesnt load

: Unable to get property 'nodeName' of undefined or null reference in tinymce.min.js

avatar astridx
astridx - comment - 20 Jul 2018

I have tested on firefox 61.0.1 (64-Bit) on Ubuntu 18.04

avatar brianteeman brianteeman - test_item - 20 Jul 2018 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 20 Jul 2018

I have tested this item ? unsuccessfully on 56722dc


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

avatar Anu1601CS Anu1601CS - test_item - 21 Jul 2018 - Tested unsuccessfully
avatar Anu1601CS
Anu1601CS - comment - 21 Jul 2018

I have tested this item ? unsuccessfully on 56722dc


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

avatar Anu1601CS
Anu1601CS - comment - 21 Jul 2018

@dgrammatiko Few things I noticed

  1. The issue still present.
    screenshot from 2018-07-21 09-12-36

  2. In debug mode why its loading .min.js files ?
    selection_013

  3. Is these custom elements are not a part of joomla ?
    Because, these are kept in media/vendor ?

avatar Anu1601CS
Anu1601CS - comment - 21 Jul 2018

@dgrammatiko As I can see.
If you test this on Article in your test case. It's working fine. Because Its going through first case

screenshot from 2018-07-21 09-35-14

this.hasNested is true for the article.
that's why its giving output in the console.

screenshot from 2018-07-21 09-38-27

And, in mine case, I tested at com_templates and it's going through 2nd case else .

avatar dgrammatiko
dgrammatiko - comment - 21 Jul 2018

Tested in IE11 - the tabs are present now BUT now the editor doesnt load

Well, Houston we have a problem. I'm trying to figure out why this is happening

@Anu1601CS probably the conditional is wrong, will take a look at that once I fix the polyfills situation, which is way more severe

avatar Anu1601CS
Anu1601CS - comment - 21 Jul 2018

@dgrammatiko Ok, Thanks

avatar dgrammatiko
dgrammatiko - comment - 21 Jul 2018

FWIW I've already filled an issue: tinymce/tinymce#4502 as all the combinations of the polyfills that include the shadowDOM will fail. This is a tinyMCE issue

avatar dgrammatiko
dgrammatiko - comment - 24 Jul 2018

About the tinyMCE problem: it's gonna be fixed upstream.
tinymce/tinymce#4502 (comment)

avatar fuzzbomb
fuzzbomb - comment - 26 Jul 2018

@brianteeman asked me to look here.

I'm pretty new to Joomla development - I've got it running locally, but the JS files loaded by the browser are all minified versions. Is there a way to get Joomla to use the original versions?

avatar laoneo
laoneo - comment - 26 Jul 2018

Change to debug mode in the Joomla configuration.

avatar brianteeman
brianteeman - comment - 26 Jul 2018

@fuzzbomb send me a message if you get stuck.

avatar dgrammatiko dgrammatiko - change - 2 Aug 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 2 Aug 2018
Category Repository Layout Libraries JavaScript Repository Layout Libraries
avatar infograf768 infograf768 - test_item - 3 Aug 2018 - Tested successfully
avatar infograf768
infograf768 - comment - 3 Aug 2018

I have tested this item successfully on 8820ffa

All tested fine.

We recover the tabs (yes, including in Firefox) although their display have changed (certainly a matter of css)

screen shot 2018-08-03 at 08 15 20

Did not test with IE as I use mac.


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 Aug 2018

@Anu1601CS can you please retest?

avatar infograf768
infograf768 - comment - 3 Aug 2018

Needs npm to be tested

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 Aug 2018

npm = ?

avatar TobsBobs
TobsBobs - comment - 3 Aug 2018

npm = Node Package Manager

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 Aug 2018

Thanks @TobsBobs, i know NPM as "New Public Management" :-)

avatar wojsmol
wojsmol - comment - 3 Aug 2018

@franz-wohlkoenig In simple words - needs a little knowledge about you Mac Terminal. Can be referred also as node or nodee.js

avatar wilsonge
wilsonge - comment - 3 Aug 2018

Given we've documented the tinymce issue at #21374 I'm going to merge this as it's a 'safe' update and at least moves ff one step forward

avatar wilsonge wilsonge - close - 3 Aug 2018
avatar wilsonge wilsonge - merge - 3 Aug 2018
avatar wilsonge wilsonge - change - 3 Aug 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-08-03 09:57:20
Closed_By wilsonge

Add a Comment

Login with GitHub to post a comment