__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package Joomla.Plugin
* @subpackage Editors.tinymce
*
* @copyright (C) 2021 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\PluginTraits;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* The ToolbarPresets trait holds the default presets for the toolbar.
*
* @since 4.1.0
*/
trait ToolbarPresets
{
/**
* Return toolbar presets
*
* @return array
*
* @since 4.1.0
*/
public static function getToolbarPreset()
{
return [
'simple' => [
'menu' => [],
'toolbar1' => [
'bold', 'underline', 'strikethrough', '|',
'undo', 'redo', '|',
'bullist', 'numlist', '|',
'pastetext', 'jxtdbuttons',
],
'toolbar2' => [],
],
'medium' => [
'menu' => ['edit', 'insert', 'view', 'format', 'table', 'tools', 'help'],
'toolbar1' => [
'bold', 'italic', 'underline', 'strikethrough', '|',
'alignleft', 'aligncenter', 'alignright', 'alignjustify', '|',
'blocks', '|',
'bullist', 'numlist', '|',
'outdent', 'indent', '|',
'undo', 'redo', '|',
'link', 'unlink', 'anchor', 'code', '|',
'hr', 'table', '|',
'subscript', 'superscript', '|',
'charmap', 'pastetext', 'preview', 'jxtdbuttons',
],
'toolbar2' => [],
],
'advanced' => [
'menu' => ['edit', 'insert', 'view', 'format', 'table', 'tools', 'help'],
'toolbar1' => [
'bold', 'italic', 'underline', 'strikethrough', '|',
'alignleft', 'aligncenter', 'alignright', 'alignjustify', '|',
'lineheight', '|',
'styles', '|',
'blocks', 'fontfamily', 'fontsize', '|',
'searchreplace', '|',
'bullist', 'numlist', 'accordion', '|',
'outdent', 'indent', '|',
'undo', 'redo', '|',
'link', 'unlink', 'anchor', 'image', '|',
'code', '|',
'forecolor', 'backcolor', '|',
'fullscreen', '|',
'table', '|',
'subscript', 'superscript', '|',
'charmap', 'emoticons', 'media', 'hr', 'ltr', 'rtl', '|',
'cut', 'copy', 'paste', 'pastetext', '|',
'visualchars', 'visualblocks', 'nonbreaking', 'blockquote', 'jtemplate', '|',
'print', 'preview', 'codesample', 'insertdatetime', 'removeformat', 'jxtdbuttons',
'language',
],
'toolbar2' => [],
],
];
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ActiveSiteTemplate.php | File | 1.32 KB | 0664 |
|
| DisplayTrait.php | File | 24.21 KB | 0664 |
|
| GlobalFilters.php | File | 6.85 KB | 0664 |
|
| KnownButtons.php | File | 4.89 KB | 0664 |
|
| ResolveFiles.php | File | 3.44 KB | 0664 |
|
| ToolbarPresets.php | File | 3.11 KB | 0664 |
|
| XTDButtons.php | File | 3.64 KB | 0664 |
|