Skip to content

Commit

Permalink
Usenamespaced classes for tinymce
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Lodder committed Jan 2, 2018
1 parent ec75775 commit c9d9681
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 5 additions & 2 deletions layouts/joomla/tinymce/buttons.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@

defined('JPATH_BASE') or die;

JLog::add('The layout joomla.tinymce.buttons is deprecated, use joomla.editors.buttons instead.', JLog::WARNING, 'deprecated');
echo JLayoutHelper::render('joomla.editors.buttons', $displayData);
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Log\Log;

Log::add('The layout joomla.tinymce.buttons is deprecated, use joomla.editors.buttons instead.', Log::WARNING, 'deprecated');
echo LayoutHelper::render('joomla.editors.buttons', $displayData);
7 changes: 5 additions & 2 deletions layouts/joomla/tinymce/buttons/button.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@

defined('JPATH_BASE') or die;

JLog::add('The layout joomla.tinymce.buttons.button is deprecated, use joomla.editors.buttons.button instead.', JLog::WARNING, 'deprecated');
echo JLayoutHelper::render('joomla.editors.buttons.button', $displayData);
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Log\Log;

Log::add('The layout joomla.tinymce.buttons.button is deprecated, use joomla.editors.buttons.button instead.', Log::WARNING, 'deprecated');
echo LayoutHelper::render('joomla.editors.buttons.button', $displayData);
7 changes: 5 additions & 2 deletions layouts/joomla/tinymce/togglebutton.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@

defined('JPATH_BASE') or die;

use Joomla\CMS\Language\Text;

$name = $displayData;

?>
<div class="toggle-editor btn-toolbar float-right clearfix mt-3">
<div class="btn-group">
<a class="btn btn-secondary" href="#"
onclick="tinyMCE.execCommand('mceToggleEditor', false, '<?php echo $name; ?>');return false;"
title="<?php echo JText::_('PLG_TINY_BUTTON_TOGGLE_EDITOR'); ?>"
title="<?php echo Text::_('PLG_TINY_BUTTON_TOGGLE_EDITOR'); ?>"
>
<span class="icon-eye" aria-hidden="true"></span> <?php echo JText::_('PLG_TINY_BUTTON_TOGGLE_EDITOR'); ?>
<span class="icon-eye" aria-hidden="true"></span>
<?php echo Text::_('PLG_TINY_BUTTON_TOGGLE_EDITOR'); ?>
</a>
</div>
</div>

0 comments on commit c9d9681

Please sign in to comment.