From 376bb178196bdea3604e230436dbabb8259ce74c Mon Sep 17 00:00:00 2001 From: git-pc-greta Date: Thu, 30 Jan 2025 16:27:18 +0100 Subject: declare(strict_types=1); --- index.php | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index d998d96..a7815be 100644 --- a/index.php +++ b/index.php @@ -49,7 +49,7 @@ elseif($ckeditor->getStorageMode() === 'files') $texte = trim(file_get_contents(CKEditor::DATA_PATH . '/html/' . $id . '.html')); //$texte = addslashes($texte); // échappe ', ", \ et NULL, je sais pas si c'est bien - // ouvrir l'éditeur sur un des articles ou aucun + // vue - afficher des articles et éventuellement l'éditeur dans un des articles if(isset($_GET['action']) && $_GET['action'] === 'open_editor') { if($id === $id_article) @@ -62,11 +62,31 @@ elseif($ckeditor->getStorageMode() === 'files') $articles_content[] = $ckeditor->displayArticle($id, $texte); } } - else // affichage article + else { $articles_content[] = $ckeditor->displayArticle($id, $texte); } } } - -require 'src/view/templates/page.php'; +// vue +?> + + + + + + + getCSSOutsideEditorTag() ?> + getCSSEditorTag() ?> + + +
+ +
+ + -- cgit v1.2.3