tinymce page suite
This commit is contained in:
parent
4fa06f834c
commit
ee85e47c3b
|
@ -551,6 +551,7 @@ class page extends common {
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'title' => $this->getData(['page', $this->getUrl(2), 'title']),
|
'title' => $this->getData(['page', $this->getUrl(2), 'title']),
|
||||||
|
'vendor' => ['tinymce'],
|
||||||
'view' => 'edit'
|
'view' => 'edit'
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,21 +1,16 @@
|
||||||
<?php
|
<?php
|
||||||
// Lexique
|
// Lexique
|
||||||
include('./core/module/page/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_page.php');
|
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>
|
<script>
|
||||||
var lang_admin = "<?php echo $lang_admin; ?>";
|
var lang_admin = "<?php echo $lang_admin; ?>";
|
||||||
var lang_flatpickr = "<?php echo $lang_flatpickr; ?>";
|
var lang_flatpickr = "<?php echo $lang_flatpickr; ?>";
|
||||||
|
var initSnipcart = "<?php echo $initSnipcart; ?>";
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?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'); ?>
|
echo template::formOpen('pageEditForm'); ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col2">
|
<div class="col2">
|
||||||
|
|
Loading…
Reference in New Issue