? Success

User tests: Successful: Unsuccessful:

avatar anibalsanchez
anibalsanchez
13 Nov 2015

tinymce is concatenating button callback with , and it generates the SyntaxError.

It is fixed removing ,

To test it, a callback can be added to any of the current editors-xtd plugins. For instance, in plugins/editors-xtd/image/image.php, line 62:

$button->onclick = 'alert("test")';

When the patch is applied, there is no console error, editor loads fine and when you click on the button it shows 'test'

avatar anibalsanchez anibalsanchez - open - 13 Nov 2015
avatar anibalsanchez anibalsanchez - change - 13 Nov 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Nov 2015
Labels Added: ?
avatar roland-d roland-d - test_item - 13 Nov 2015 - Tested successfully
avatar roland-d
roland-d - comment - 13 Nov 2015

I have tested this item :white_check_mark: successfully on b8c6a12

Before applying the patch I see the JavaScript error, after applying the patch the error is gone and the code is outlined nicely.


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

avatar dgt41 dgt41 - test_item - 14 Nov 2015 - Tested successfully
avatar dgt41
dgt41 - comment - 14 Nov 2015

I have tested this item :white_check_mark: successfully on b8c6a12

Good catch, thanks @anibalsanchez


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

avatar zero-24 zero-24 - change - 14 Nov 2015
Milestone Added:
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 14 Nov 2015

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 14 Nov 2015
Labels Added: ?
avatar Bakual Bakual - change - 14 Nov 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-11-14 08:29:28
Closed_By Bakual
avatar Bakual Bakual - close - 14 Nov 2015
avatar joomla-cms-bot joomla-cms-bot - close - 14 Nov 2015
avatar joomla-cms-bot joomla-cms-bot - change - 14 Nov 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment