? Success
Pull Request for # 6909

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
9 May 2015

Restores read more button functionality

Response to #6909
The problem:

Create an article, add some text and try to insert a Read More via the Read More button.
The code


is not inserted.

After some tests with IE 8 & 11 and some reading on what changed in tinyMCE from 3.x to 4.x I removed the function IeCursorFix.

Test

With latest staging try to insert a read more tag (with the button bellow editor)
Apply patch and retry

This needs to be tested on ALL IE versions Joomla supports, thats 8,9,10 & 11 (and if you have it handy why not with edge). All other browsers are not affected, besides the fact that the code was replacing the onclick event of the buttons and therefore made them unusable!

6f38353 9 May 2015 avatar dgt41 fix
avatar dgt41 dgt41 - open - 9 May 2015
avatar dgt41 dgt41 - change - 9 May 2015
Title
fix
Reader button doesn’t work any more...
avatar infograf768
infograf768 - comment - 9 May 2015

@test OK here. Thank you! (but I do not use IE, so it may be necessary to check on IE)

avatar dgt41
dgt41 - comment - 9 May 2015

@infograf768 JM do you know if this IeCursorFix() is used for all versions of IE?

avatar brianteeman
brianteeman - comment - 9 May 2015

What is wrong with it? What can someone observe as an issue so that they
can test and replicate the issue and the fix

On 9 May 2015 at 11:45, Dimitris Grammatiko notifications@github.com
wrote:

Fix read more button

You can view, comment on, or merge this pull request online at:

#6911
Commit Summary

  • fix

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#6911.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar infograf768
infograf768 - comment - 9 May 2015

See #6909 where the issue is described and confirmed.

avatar dgt41
dgt41 - comment - 9 May 2015

@brianteeman Sorry was too spartan in the comments! What is wrong? the button doesn’t apply any html to the editor window, or visually the red dotted line is not inserted...

9e6f41d 9 May 2015 avatar dgt41 CS
avatar dgt41 dgt41 - change - 9 May 2015
The description was changed
Title
fix
Reader button doesn’t work any more...
avatar joomla-cms-bot joomla-cms-bot - change - 9 May 2015
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 9 May 2015
Labels Added: ?
avatar dgt41
dgt41 - comment - 9 May 2015

@infograf768 All buttons continue to function as expected here on IE8
screen shot 2015-05-09 at 1 58 34

The link is an article selected with the article button

avatar dgt41 dgt41 - change - 9 May 2015
Title
Reader button doesn’t work any more...
Read more button doesn’t work any more...
avatar dgt41 dgt41 - change - 9 May 2015
Title
Reader button doesn’t work any more...
Read more button doesn’t work any more...
avatar dgt41
dgt41 - comment - 9 May 2015

@infograf768 If I force IeCursorFix() to run I get very strange behavior on IE: the text is white and the return will not change line.
So I think this is outdated code and we should completely take it out

avatar zero-24 zero-24 - change - 9 May 2015
Category JavaScript Plugins
avatar zero-24 zero-24 - change - 9 May 2015
Title
Read more button doesn’t work any more...
Reader button doesn’t work any more...
avatar zero-24 zero-24 - change - 9 May 2015
Status New Pending
Rel_Number 0 6909
Relation Type Pull Request for
Easy No Yes
avatar dgt41 dgt41 - change - 9 May 2015
The description was changed
avatar infograf768
infograf768 - comment - 10 May 2015

As I do not have IE here, I can't test.
Please modify PR title to include "Regression" and change "Reader" button to "Read More" button. ;)

avatar zero-24 zero-24 - change - 10 May 2015
Title
Reader button doesn’t work any more...
Regression: Read More button doesn’t work any more...
avatar zero-24 zero-24 - change - 10 May 2015
Title
Reader button doesn’t work any more...
Regression: Read More button doesn’t work any more...
avatar dgt41
dgt41 - comment - 10 May 2015

@roland-d Can you take a look at this one, as it is a release blocker for 3.4.2 since there is a regression that needs to be fixed!
The first two commits check if there is a value for onclick event on the buttons and if so doesn’t change it with the code IeCursorFix(); return false;.

The third commit has a another approach: the function IeCursorFix() is a fix for IE cursor position which (most probably) was needed in tinyMCE version 3. My tests (IE8 & IE11) indicate that the editor functions normally without this fix.
We need two tests with all IE versions Joomla support (>IE8), and thoroughly test all the functionality of the editor

avatar zero-24 zero-24 - change - 10 May 2015
Milestone Added:
avatar dgt41
dgt41 - comment - 16 May 2015

@smz Sergio I think you are on PC, right? can you give this a go, if you have some spare time and it’s not too much hassle? Thanks!

avatar smz
smz - comment - 16 May 2015

@dgt41: I can test with IE11 only. Is that enough?

avatar dgt41
dgt41 - comment - 16 May 2015

I will owe you big time! Beers on me!

avatar smz
smz - comment - 16 May 2015

@test OK with IE11 and FF 38.0.1

avatar smz smz - test_item - 16 May 2015 - Tested successfully
avatar infograf768
infograf768 - comment - 17 May 2015

still needs testing on IE8

avatar waader
waader - comment - 17 May 2015

@test works fine with IE8!

avatar waader waader - test_item - 17 May 2015 - Tested successfully
avatar zero-24 zero-24 - change - 17 May 2015
Status Pending Ready to Commit
avatar zero-24 zero-24 - change - 17 May 2015
Labels Added: ?
avatar zero-24 zero-24 - close - 20 May 2015
avatar wilsonge wilsonge - change - 20 May 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-05-20 14:13:59
Closed_By wilsonge
avatar wilsonge wilsonge - close - 20 May 2015
avatar wilsonge
wilsonge - comment - 20 May 2015

Apologies for it taking so long to test & merge this! Thanks @dgt41

avatar dgt41
dgt41 - comment - 20 May 2015

It wasn’t that long ???? @wilsonge Thanks!

avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment