Bug page Editor

This commit is contained in:
Fred Tempez 2025-01-28 18:44:40 +01:00
parent 288393778a
commit 1f0d490688
2 changed files with 2 additions and 2 deletions

View File

@ -610,7 +610,7 @@ class page extends common
if (!is_dir(self::DATA_DIR . self::$siteContent . '/content')) {
mkdir(self::DATA_DIR . self::$siteContent . '/content', 0755);
}
$content = empty($this->getInput('pageEditContent', null)) ? '<p></p>' : str_replace('<p></p>', '<p>&nbsp;</p>', $this->getInput('pageEditContent', null));
$content = empty($this->getInput('pageEditWysiwyg', null)) ? '<p></p>' : str_replace('<p></p>', '<p>&nbsp;</p>', $this->getInput('pageEditWysiwyg', null));
$this->setPage($pageId, $content, self::$siteContent);
// Met à jour le sitemap

View File

@ -122,7 +122,7 @@ echo '></div>';
</div>
<div class="row">
<div class="col12">
<?php echo template::textarea('editorWysiwyg', [
<?php echo template::textarea('pageEditWysiwyg', [
'class' => 'editorWysiwyg',
'value' => $this->getPage($this->getUrl(2), self::$siteContent)
]); ?>