summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2025-01-14 23:53:17 +0100
committerpolo <ordipolo@gmx.fr>2025-01-14 23:53:17 +0100
commitbbf50ae1ffa5b1b3b71f0e57d658d9beaaa50de0 (patch)
treebb4f695368c2895e58ee710582b6ff4a09653474 /index.php
parente9a5da044f63851aa37d401ef37c8102b08ae274 (diff)
downloadckeditor5-bbf50ae1ffa5b1b3b71f0e57d658d9beaaa50de0.zip
meilleur filtrage upload AJAX
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/index.php b/index.php
index 9beed23..1ece14f 100644
--- a/index.php
+++ b/index.php
@@ -2,20 +2,17 @@
2// index.php 2// index.php
3 3
4require 'src/integration/ckeditor5/config.php'; 4require 'src/integration/ckeditor5/config.php';
5require 'src/integration/ckeditor5/init.php'; 5require $ckeditor_integration_path . 'init.php';
6makeTranslationSymLink(); 6makeTranslationSymLink();
7 7
8 8
9// routage 9// routage
10 10
11// upload images AJAX 11// upload images AJAX
12if(isset($_GET['action']) && $_GET['action'] === 'upload_image') // image insérée dans l'éditeur => requête AJAX 12require $ckeditor_integration_path . 'image_upload.php';
13{
14 require $ckeditor_integration_path . 'image_upload.php';
15}
16 13
17// submit normal 14// submit normal
18elseif(isset($_GET['action']) && $_GET['action'] === 'submit') // HTML envoyé par l'éditeur 15if(isset($_GET['action']) && $_GET['action'] === 'submit') // HTML envoyé par l'éditeur
19{ 16{
20 require $ckeditor_integration_path . 'clean_html.php'; 17 require $ckeditor_integration_path . 'clean_html.php';
21 $html_from_editor = getAndCleanEditorOutput(); // manipule $_POST['contenu']; 18 $html_from_editor = getAndCleanEditorOutput(); // manipule $_POST['contenu'];