Skip to content

Commit

Permalink
Clean up toggleButton
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed May 31, 2020
1 parent 7c5546d commit 9184643
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions plugins/editors/tinymce/tinymce.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function onDisplay(
// Render Editor markup
$editor = '<div class="js-editor-tinymce">';
$editor .= LayoutHelper::render('joomla.tinymce.textarea', $textarea);
$editor .= $this->_toogleButton($id);
$editor .= $this->_toogleButton();
$editor .= '</div>';

// Prepare the instance specific options, actually the ext-buttons
Expand Down Expand Up @@ -649,15 +649,13 @@ public function onDisplay(
/**
* Get the toggle editor button
*
* @param string $name Editor name
*
* @return string
*/
private function _toogleButton($name)
private function _toogleButton()
{
if (!$this->app->client->mobile)
{
return LayoutHelper::render('joomla.tinymce.togglebutton', $name);
return LayoutHelper::render('joomla.tinymce.togglebutton');
}
}

Expand Down

0 comments on commit 9184643

Please sign in to comment.