tinymce page suite
This commit is contained in:
parent
4fa06f834c
commit
ee85e47c3b
|
@ -551,6 +551,7 @@ class page extends common {
|
|||
// Valeurs en sortie
|
||||
$this->addOutput([
|
||||
'title' => $this->getData(['page', $this->getUrl(2), 'title']),
|
||||
'vendor' => ['tinymce'],
|
||||
'view' => 'edit'
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -1,21 +1,16 @@
|
|||
<?php
|
||||
// Lexique
|
||||
include('./core/module/page/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_page.php');
|
||||
|
||||
$initSnipcart = false;
|
||||
if ($this->getData(['page', $this->getUrl(2), 'moduleId']) === 'snipcart' ) $initSnipcart = true;
|
||||
?>
|
||||
<script>
|
||||
var lang_admin = "<?php echo $lang_admin; ?>";
|
||||
var lang_flatpickr = "<?php echo $lang_flatpickr; ?>";
|
||||
var initSnipcart = "<?php echo $initSnipcart; ?>";
|
||||
</script>
|
||||
<?php
|
||||
// Inclusion de tinymce
|
||||
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/tinymce.min.js' . '"></script>';
|
||||
if ($this->getData(['page', $this->getUrl(2), 'moduleId']) === 'snipcart' ){
|
||||
echo '<script src="'. helper::baseUrl(false).'module/snipcart/vendor/init.js"></script>';
|
||||
} else {
|
||||
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.js' . '"></script>';
|
||||
}
|
||||
echo '<link rel="stylesheet" href="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.css' . '">';
|
||||
|
||||
echo template::formOpen('pageEditForm'); ?>
|
||||
<div class="row">
|
||||
<div class="col2">
|
||||
|
|
Loading…
Reference in New Issue