Skip to content

Commit

Permalink
Adapt to traits
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed Jan 6, 2022
1 parent 65c2d39 commit db16d2d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @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;

\defined('_JEXEC') or die();
Expand All @@ -27,11 +28,11 @@
*/
trait DisplayTrait
{
use GlobalFilters;
use KnownButtons;
use ResolveFiles;
use ToolbarPresets;
use XTDButtons;
use GlobalFilters;
use KnownButtons;
use ResolveFiles;
use ToolbarPresets;
use XTDButtons;

/**
* Display the editor area.
Expand Down Expand Up @@ -454,8 +455,9 @@ public function onDisplay(

// Cleanup/Output
'browser_spellcheck' => true,
'entity_encoding' => $levelParams->get('entity_encoding', 'raw'),
'verify_html' => !$ignore_filter,
'entity_encoding' => $levelParams->get('entity_encoding', 'raw'),
'verify_html' => !$ignore_filter,
'paste_as_text' => (bool) $levelParams->get('paste_as_text', false),

'valid_elements' => $valid_elements,
'extended_valid_elements' => implode(',', $elements),
Expand Down

0 comments on commit db16d2d

Please sign in to comment.