Skip to content

Commit

Permalink
Update universalbuttons.php
Browse files Browse the repository at this point in the history
  • Loading branch information
macstalker committed Aug 22, 2022
1 parent f34c213 commit e2713e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions universalbuttons.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

defined('_JEXEC') or die;

use Joomla\CMS\Factory;

class plgButtonUniversalButtons extends JPlugin
{
public function onDisplay($name, &$params)
Expand Down Expand Up @@ -47,7 +49,7 @@ public function onDisplay($name, &$params)

case "0":

$app = JFactory::getApplication();
$app = Factory::getApplication();
// ...
$root = '';
if ($app->isAdmin()) {
Expand Down Expand Up @@ -104,7 +106,7 @@ public function onDisplay($name, &$params)
$iVariable++;
}

$js .= " jInsertEditorText( str, editor); }";
$js .= " Joomla.editors.instances[editor].replaceSelection(str); }";


$css = "";
Expand Down

0 comments on commit e2713e3

Please sign in to comment.