CoreFiles by mySites.guru
TinyMCEProvider.php80 lines, 1,865 bytes, from Joomla_5.3.2-Stable-Full_Package.zip
Raw History Compare with 5.3.1
md5
2b819af2b17bd0971cb67bfb06c72971
sha1
c851195197aeac001e3cf87fecb78cba9dd3e270
sha256
15fb2ad1a83e1814d99e24c6d3264d16db62ed17f95579a3adf767f0e34f5f0c
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Plugin\Editors\TinyMCE\Provider;

use Joomla\CMS\Application\CMSApplicationInterface;
use Joomla\CMS\Editor\AbstractEditorProvider;
use Joomla\Database\DatabaseAwareTrait;
use Joomla\Database\DatabaseInterface;
use Joomla\Event\DispatcherInterface;
use Joomla\Plugin\Editors\TinyMCE\PluginTraits\DisplayTrait;
use Joomla\Registry\Registry;

/**
 * Editor provider class
 *
 * @since   5.0.0
 */
final class TinyMCEProvider extends AbstractEditorProvider
{
    use DisplayTrait;
    use DatabaseAwareTrait;

    /**
     * A Registry object holding the parameters for the plugin
     *
     * @var    Registry
     * @since  5.0.0
     */
    protected $params;

    /**
     * The application object
     *
     * @var    CMSApplicationInterface
     *
     * @since  5.0.0
     */
    protected $application;

    /**
     * Class constructor
     *
     * @param   Registry                 $params
     * @param   CMSApplicationInterface  $application
     * @param   DispatcherInterface      $dispatcher
     * @param   DatabaseInterface        $database
     *
     * @since  5.0.0
     */
    public function __construct(
        Registry $params,
        CMSApplicationInterface $application,
        DispatcherInterface $dispatcher,
        DatabaseInterface $database
    ) {
        $this->params      = $params;
        $this->application = $application;

        $this->setDispatcher($dispatcher);
        $this->setDatabase($database);
    }

    /**
     * Return Editor name, CMD string.
     *
     * @return string
     * @since   5.0.0
     */
    public function getName(): string
    {
        return 'tinymce';
    }
}

The same content is in 148 releases, Joomla 5.0.0-rc to 6.2.1-rc1. See them all, or every version of this file.