Skip to content

Commit

Permalink
Merge pull request #3 from macstalker/main Joomla 4.0 support
Browse files Browse the repository at this point in the history
Update universalbuttons.php
  • Loading branch information
Tazzios authored Aug 28, 2022
2 parents f34c213 + e2713e3 commit f28814a
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 f28814a

Please sign in to comment.