Skip to content

Commit

Permalink
Changed: use whitelist from tiny
Browse files Browse the repository at this point in the history
  • Loading branch information
chmst committed Apr 22, 2016
1 parent 4df0f9d commit dbb8f53
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plugins/editors/tinymce/tinymce.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,22 +298,22 @@ public function onDisplay($name, $content, $width, $height, $col, $row, $buttons
// Use filters from com_config
$filter = $this->getGlobalFilters();

$tagBlacklist = !empty($filter->tagBlacklist) ? $filter->tagBlacklist : array();
$tagBlacklist = !empty($filter->tagBlacklist) ? $filter->tagBlacklist : array();
$attrBlacklist = !empty($filter->attrBlacklist) ? $filter->attrBlacklist : array();
$tagArray = !empty($filter->tagArray) ? $filter->tagArray : array();
$attrArray = !empty($filter->attrArray) ? $filter->attrArray : array();
$tagArray = !empty($filter->tagArray) ? $filter->tagArray : array();
$attrArray = !empty($filter->attrArray) ? $filter->attrArray : array();

$invalid_elements = implode(',', array_merge($tagBlacklist, $attrBlacklist, $tagArray, $attrArray));
$extended_elements = '';
$valid_elements = '';
}
else
{
// Use filters from TinyMCE params
$invalid_elements = $this->params->get('invalid_elements', 'script,applet,iframe');
$extended_elements = $this->params->get('extended_elements', '');
$valid_elements = $this->params->get('valid_elements', '');
}

// Valid elements from TinyMCE
$extended_elements = $this->params->get('extended_elements', '');
$valid_elements = $this->params->get('valid_elements', '');

// Advanced Options
$access = JFactory::getUser()->getAuthorisedViewLevels();
Expand Down

0 comments on commit dbb8f53

Please sign in to comment.