Skip to content

Commit

Permalink
Fix TinyMCE height for multiple editor instances
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Jun 2, 2022
1 parent 04e275c commit 3f81350
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php
Expand Up @@ -98,17 +98,17 @@ public function onDisplay(
$options['tinyMCE'][$fieldName]['height'] = $height;
}

// Set editor to readonly mode
if (!empty($params['readonly']))
{
$options['tinyMCE'][$fieldName]['readonly'] = 1;
}

// The ext-buttons
if (empty($options['tinyMCE'][$fieldName]['joomlaExtButtons']))
{
$btns = $this->tinyButtons($id, $buttons);

// Set editor to readonly mode
if (!empty($params['readonly']))
{
$options['tinyMCE'][$fieldName]['readonly'] = 1;
}

$options['tinyMCE'][$fieldName]['joomlaMergeDefaults'] = true;
$options['tinyMCE'][$fieldName]['joomlaExtButtons'] = $btns;
}
Expand Down

0 comments on commit 3f81350

Please sign in to comment.