Skip to content

Commit

Permalink
Drop a useless function
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Jun 1, 2020
1 parent 7d9a364 commit 0d502f7
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions plugins/editors/tinymce/tinymce.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,12 @@ public function onDisplay(
// Render Editor markup
$editor = '<div class="js-editor-tinymce">';
$editor .= LayoutHelper::render('joomla.tinymce.textarea', $textarea);
$editor .= $this->_toogleButton();

if (!$this->app->client->mobile)
{
$editor .= LayoutHelper::render('joomla.tinymce.togglebutton');
}

$editor .= '</div>';

// Prepare the instance specific options, actually the ext-buttons
Expand Down Expand Up @@ -646,19 +651,6 @@ public function onDisplay(
return $editor;
}

/**
* Get the toggle editor button
*
* @return string
*/
private function _toogleButton()
{
if (!$this->app->client->mobile)
{
return LayoutHelper::render('joomla.tinymce.togglebutton');
}
}

/**
* Get the XTD buttons and render them inside tinyMCE
*
Expand Down

0 comments on commit 0d502f7

Please sign in to comment.