diff --git a/src/plugins/editors-xtd/weblink/weblink.php b/src/plugins/editors-xtd/weblink/weblink.php index 0724f47..fd481d1 100644 --- a/src/plugins/editors-xtd/weblink/weblink.php +++ b/src/plugins/editors-xtd/weblink/weblink.php @@ -10,6 +10,7 @@ defined('_JEXEC') or die; use Joomla\CMS\Language\Text; +use Joomla\CMS\Object\CMSObject; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\CMS\Session\Session; @@ -65,6 +66,23 @@ class PlgButtonWeblink extends CMSPlugin $button->name = 'link'; $button->options = "{handler: 'iframe', size: {x: 800, y: 500}}"; + $button = new CMSObject; + $button->modal = true; + $button->link = $link; + $button->text = Text::_('PLG_EDITORS-XTD_WEBLINK_BUTTON_WEBLINK'); + $button->name = $this->_type . '_' . $this->_name; + $button->icon = 'globe'; + $button->iconSVG = ' + + '; + + $button->options = [ + 'height' => '300px', + 'width' => '800px', + 'bodyHeight' => '70', + 'modalWidth' => '80', + ]; + return $button; } }