? ? ? Pending

User tests: Successful: Unsuccessful:

avatar chmst
chmst
19 Apr 2016

Summary of Changes

At the moment, the filter settings for HTML tags and attributes in the Tiny MCE are completly independent from the Joomla! settings (=> Global Configuration). So it's possible, that elements are allowed in the Tiny MCE but are forbidden in the Joomla! filter or vice versa.
With this patch it's possible to ignore the Tiny MCE settings and use the Joomla! settings to have the exact same filter rules and no variance. Special advantage: with this new function it's possible to define the rules for each user group!

Testing Instructions

  1. You need at least one user who is not super user
  2. In global configuration define textfilter for the usergroup the user belongs to, as for example set White list and allow the tag iframe and the attribute background.
  3. Login as this user and write a new article which contains an iframe. Save the article and the iframe disappears if it is denied in TinyMCE.

  4. Apply the patch

  5. In the TinyMCE Plugin set the new Param "use Joomla textfilters" to on.
  6. Login again as the user and write a new article containig an iframe and a style baykground
  7. For this user, iframe and background will remain
  8. Now play around and test some combinations, allowing and denying different tags or attributes to different user groups
avatar chmst chmst - open - 19 Apr 2016
avatar chmst chmst - change - 19 Apr 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Apr 2016
Labels Added: ? ?
avatar brianteeman brianteeman - change - 19 Apr 2016
Labels
avatar brianteeman brianteeman - change - 19 Apr 2016
Category External Library Language & Strings Plugins
avatar brianteeman brianteeman - change - 19 Apr 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 19 Apr 2016
Milestone Added:
avatar roland-d
roland-d - comment - 19 Apr 2016

@chmst Please alpha-order the language strings.

avatar chmst
chmst - comment - 19 Apr 2016

@roland-d done

avatar zero-24
zero-24 - comment - 22 Apr 2016

hmm maybe I'm worng but i'm unable to add a script tag bevor and after the patch.

I'm super user without any filter resctrictions.

I did try to insert this piece of code via the "html code / source code" field from the tinyMCE:

<div>foo</div>
<script>
document.write('<div>Print this after the script tag</div>');
</script>
<div>bar</div>

And after i'd want to save it the script tag was removed.

But this happen before and after the patch.

The iframe thing is working perfect in frontend and backend looks good to me :+1:

avatar chmst
chmst - comment - 22 Apr 2016

Thank you, you are right. The tiny has it's own whitelist. I take this whitelist now additional to the text-filter.


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

avatar wojsmol
wojsmol - comment - 22 Apr 2016

@chmst Please see chmst#3

avatar zero-24 zero-24 - test_item - 23 Apr 2016 - Tested successfully
avatar zero-24
zero-24 - comment - 23 Apr 2016

I have tested this item :white_check_mark: successfully on b3f83ea

Works now. Thanks @chmst I can't wait that 3.6 with this feature is be released very usefull.

@brianteeman are you ok with the language strings?


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

avatar bembelimen bembelimen - test_item - 23 Apr 2016 - Tested successfully
avatar bembelimen
bembelimen - comment - 23 Apr 2016

I have tested this item :white_check_mark: successfully on b3f83ea


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 24 Apr 2016

This PR has received new commits.

CC: @bembelimen, @zero-24


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

avatar zero-24
zero-24 - comment - 24 Apr 2016

@brianteeman the last commit was just a one line cs change: 8f44c4b can we RTC than here based on the tests by @bembelimen and me? Thanks @chmst !

avatar brianteeman brianteeman - change - 24 Apr 2016
Status Pending Ready to Commit
Labels
avatar brianteeman
brianteeman - comment - 24 Apr 2016

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 24 Apr 2016
Labels Added: ?
avatar rdeutz
rdeutz - comment - 2 May 2016

@chmst cloud you please check the merge conflicts, thanks

avatar joomla-cms-bot
joomla-cms-bot - comment - 2 May 2016

This PR has received new commits.

CC: @bembelimen, @zero-24


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

avatar rdeutz rdeutz - change - 2 May 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-05-02 11:47:23
Closed_By rdeutz
avatar brianteeman brianteeman - change - 11 May 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment