Skip to content

Commit

Permalink
Allow to use tinymce params
Browse files Browse the repository at this point in the history
  • Loading branch information
alex7r committed May 31, 2017
1 parent ae7f3a4 commit a53be70
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions plugins/editors/tinymce/tinymce.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,15 @@ public function onDisplay(
$editor .= $this->_toogleButton($id);
$editor .= '</div>';

if($options['tinyMCE'][$fieldName])
{
$options['tinyMCE'][$fieldName] = array_merge($options['tinyMCE'][$fieldName], $params);
}
else
{
$options['tinyMCE'][$fieldName] = $params;
}

// Prepare the instance specific options, actually the ext-buttons
if (empty($options['tinyMCE'][$fieldName]['joomlaExtButtons']))
{
Expand Down Expand Up @@ -1269,6 +1278,15 @@ private function onDisplayLegacy(
$editor .= $this->_toogleButton($id);
$editor .= '</div>';

if($options['tinyMCE'][$fieldName])
{
$options['tinyMCE'][$fieldName] = array_merge($options['tinyMCE'][$fieldName], $params);
}
else
{
$options['tinyMCE'][$fieldName] = $params;
}

// Prepare instance specific options, actually the ext-buttons
if (empty($options['tinyMCE'][$fieldName]['joomlaExtButtons']))
{
Expand Down

0 comments on commit a53be70

Please sign in to comment.