[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Plugin 5 * @subpackage Editors.tinymce 6 * 7 * @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 namespace Joomla\Plugin\Editors\TinyMCE\PluginTraits; 12 13 use Joomla\CMS\Language\Text; 14 15 // phpcs:disable PSR1.Files.SideEffects 16 \defined('_JEXEC') or die; 17 // phpcs:enable PSR1.Files.SideEffects 18 19 /** 20 * Returns a list of known TinyMCE buttons. 21 * 22 * @since 4.1.0 23 */ 24 trait KnownButtons 25 { 26 /** 27 * Return list of known TinyMCE buttons 28 * @see https://www.tiny.cloud/docs/demo/full-featured/ 29 * @see https://www.tiny.cloud/apps/#core-plugins 30 * 31 * @return array 32 * 33 * @since 4.1.0 34 */ 35 public static function getKnownButtons() 36 { 37 return [ 38 // General buttons 39 '|' => ['label' => Text::_('PLG_TINY_TOOLBAR_BUTTON_SEPARATOR'), 'text' => '|'], 40 41 'undo' => ['label' => 'Undo'], 42 'redo' => ['label' => 'Redo'], 43 44 'bold' => ['label' => 'Bold'], 45 'italic' => ['label' => 'Italic'], 46 'underline' => ['label' => 'Underline'], 47 'strikethrough' => ['label' => 'Strikethrough'], 48 'styleselect' => ['label' => Text::_('PLG_TINY_TOOLBAR_BUTTON_STYLESELECT'), 'text' => 'Formats'], 49 'formatselect' => ['label' => Text::_('PLG_TINY_TOOLBAR_BUTTON_FORMATSELECT'), 'text' => 'Paragraph'], 50 'fontselect' => ['label' => Text::_('PLG_TINY_TOOLBAR_BUTTON_FONTSELECT'), 'text' => 'Font Family'], 51 'fontsizeselect' => ['label' => Text::_('PLG_TINY_TOOLBAR_BUTTON_FONTSIZESELECT'), 'text' => 'Font Sizes'], 52 53 'alignleft' => ['label' => 'Align left'], 54 'aligncenter' => ['label' => 'Align center'], 55 'alignright' => ['label' => 'Align right'], 56 'alignjustify' => ['label' => 'Justify'], 57 'lineheight' => ['label' => 'Line height'], 58 59 'outdent' => ['label' => 'Decrease indent'], 60 'indent' => ['label' => 'Increase indent'], 61 62 'forecolor' => ['label' => 'Text colour'], 63 'backcolor' => ['label' => 'Background text colour'], 64 65 'bullist' => ['label' => 'Bullet list'], 66 'numlist' => ['label' => 'Numbered list'], 67 68 'link' => ['label' => 'Insert/edit link', 'plugin' => 'link'], 69 'unlink' => ['label' => 'Remove link', 'plugin' => 'link'], 70 71 'subscript' => ['label' => 'Subscript'], 72 'superscript' => ['label' => 'Superscript'], 73 'blockquote' => ['label' => 'Blockquote'], 74 75 'cut' => ['label' => 'Cut'], 76 'copy' => ['label' => 'Copy'], 77 'paste' => ['label' => 'Paste', 'plugin' => 'paste'], 78 'pastetext' => ['label' => 'Paste as text', 'plugin' => 'paste'], 79 'removeformat' => ['label' => 'Clear formatting'], 80 81 'language' => ['label' => 'Language'], 82 83 // Buttons from the plugins 84 'anchor' => ['label' => 'Anchor', 'plugin' => 'anchor'], 85 'hr' => ['label' => 'Horizontal line', 'plugin' => 'hr'], 86 'ltr' => ['label' => 'Left to right', 'plugin' => 'directionality'], 87 'rtl' => ['label' => 'Right to left', 'plugin' => 'directionality'], 88 'code' => ['label' => 'Source code', 'plugin' => 'code'], 89 'codesample' => ['label' => 'Insert/Edit code sample', 'plugin' => 'codesample'], 90 'table' => ['label' => 'Table', 'plugin' => 'table'], 91 'charmap' => ['label' => 'Special character', 'plugin' => 'charmap'], 92 'visualchars' => ['label' => 'Show invisible characters', 'plugin' => 'visualchars'], 93 'visualblocks' => ['label' => 'Show blocks', 'plugin' => 'visualblocks'], 94 'nonbreaking' => ['label' => 'Nonbreaking space', 'plugin' => 'nonbreaking'], 95 'emoticons' => ['label' => 'Emoticons', 'plugin' => 'emoticons'], 96 'media' => ['label' => 'Insert/edit video', 'plugin' => 'media'], 97 'image' => ['label' => 'Insert/edit image', 'plugin' => 'image'], 98 'pagebreak' => ['label' => 'Page break', 'plugin' => 'pagebreak'], 99 'print' => ['label' => 'Print', 'plugin' => 'print'], 100 'preview' => ['label' => 'Preview', 'plugin' => 'preview'], 101 'fullscreen' => ['label' => 'Fullscreen', 'plugin' => 'fullscreen'], 102 'template' => ['label' => 'Insert template', 'plugin' => 'template'], 103 'searchreplace' => ['label' => 'Find and replace', 'plugin' => 'searchreplace'], 104 'insertdatetime' => ['label' => 'Insert date/time', 'plugin' => 'insertdatetime'], 105 'help' => ['label' => 'Help', 'plugin' => 'help'], 106 ]; 107 } 108 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |