first commit
This commit is contained in:
30
layouts/joomla/tinymce/textarea.php
Normal file
30
layouts/joomla/tinymce/textarea.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
|
||||
$data = $displayData;
|
||||
$wa = Factory::getDocument()->getWebAssetManager();
|
||||
$wa->getRegistry()->addExtensionRegistryFile('plg_editors_tinymce');
|
||||
$wa->useScript('tinymce')->useScript('plg_editors_tinymce');
|
||||
?>
|
||||
<textarea
|
||||
name="<?php echo $data->name; ?>"
|
||||
id="<?php echo $data->id; ?>"
|
||||
cols="<?php echo $data->cols; ?>"
|
||||
rows="<?php echo $data->rows; ?>"
|
||||
style="width: <?php echo $data->width; ?>; height: <?php echo $data->height; ?>;"
|
||||
class="<?php echo empty($data->class) ? 'mce_editable' : $data->class; ?>"
|
||||
<?php echo $data->readonly ? ' readonly disabled' : ''; ?>
|
||||
>
|
||||
<?php echo $data->content; ?>
|
||||
</textarea>
|
||||
23
layouts/joomla/tinymce/togglebutton.php
Normal file
23
layouts/joomla/tinymce/togglebutton.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
?>
|
||||
<div class="toggle-editor btn-toolbar float-end clearfix mt-3">
|
||||
<div class="btn-group">
|
||||
<button type="button" disabled class="btn btn-secondary js-tiny-toggler-button">
|
||||
<span class="icon-eye" aria-hidden="true"></span>
|
||||
<?php echo Text::_('PLG_TINY_BUTTON_TOGGLE_EDITOR'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user