Skip to content

TinyMCE init() issue #11190#11192

Merged
rdeutz merged 1 commit intojoomla:stagingfrom
OctavianC:patch-5
Aug 13, 2016
Merged

TinyMCE init() issue #11190#11192
rdeutz merged 1 commit intojoomla:stagingfrom
OctavianC:patch-5

Conversation

@OctavianC
Copy link
Copy Markdown
Contributor

@OctavianC OctavianC commented Jul 19, 2016

Pull Request for Issue #11190 .

Summary of Changes

The $idField variable is never used throughout the code, seems to be an attempt to sanitize the $id. I've added some more filtering to produce a usable id. Should work for multiple editors as well.

Testing Instructions

Testing instructions can be found in the issue description.

The $idField is never used throughout the code, seems to be an attempt to sanitize the id. I've added some more filtering to produce a usable id.
@dgrammatiko
Copy link
Copy Markdown
Contributor

this should be faster:

$id  = str_replace('[', '_', substr(trim($name), 0, -1));

@OctavianC
Copy link
Copy Markdown
Contributor Author

Should be faster, but it doesn't cover all options:

  • It extracts the last character, what if my $name is simply editor?
  • It doesn't take into account nested names
  • Other wrong characters would be allowed

@dgrammatiko
Copy link
Copy Markdown
Contributor

Agree!

@dgrammatiko
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 9f65523

tested with class some[name]


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

@hardiktailored
Copy link
Copy Markdown

I have tested this item ✅ successfully on 9f65523

Before, using code given in #11190, by default textarea was visible and after applying patch by default TinyMCE gets visible.
Square-brackets([]) replaced with the underscores(_) in name so found no problem in that also.
Tested multiple TinyMCE editors on the same page.


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

@dgrammatiko
Copy link
Copy Markdown
Contributor

RTC @wilsonge can you merge this one for 3.6.1 ?

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jul 30, 2016
@brianteeman brianteeman added this to the Joomla 3.6.2 milestone Jul 30, 2016
@rdeutz rdeutz merged commit ca918a6 into joomla:staging Aug 13, 2016
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Aug 13, 2016
@OctavianC OctavianC deleted the patch-5 branch August 16, 2016 07:49
ggppdk pushed a commit to ggppdk/joomla-cms that referenced this pull request Aug 19, 2016
The $idField is never used throughout the code, seems to be an attempt to sanitize the id. I've added some more filtering to produce a usable id.
roland-d pushed a commit to roland-d/joomla-cms that referenced this pull request Sep 11, 2016
The $idField is never used throughout the code, seems to be an attempt to sanitize the id. I've added some more filtering to produce a usable id.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants