b0y-101 Mini Shell


Current Path : E:/www2/risk/components/com_sppagebuilder/views/systemeditor/tmpl/
File Upload :
Current File : E:/www2/risk/components/com_sppagebuilder/views/systemeditor/tmpl/default.php

<?php

use Joomla\CMS\Editor\Editor;
use Joomla\CMS\Factory;
use Joomla\CMS\Version;

$version = new Version();
$JoomlaVersion = $version->getShortVersion();

/** @var CMSApplication */
$app = Factory::getApplication();
$input = $JoomlaVersion < 4 ? $app->input : $app->getInput();
$content = $input->get('system_editor_data', '', 'raw');

$config = $JoomlaVersion < 4 ? Factory::getConfig() : $app->getConfig();

$type = $config->get('editor');
$editor = Editor::getInstance($type);
$exclude = ['pagebreak', 'readmore'];

?>

<?php echo $editor->display('content', $content, '100%', 'max(calc(100vh - 300px), 600px)', '', '30', $exclude); ?>

Copyright © 2019 by b0y-101