diff options
| author | polo <ordipolo@gmx.fr> | 2025-03-23 15:25:18 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-03-23 15:25:18 +0100 |
| commit | 48fcf626c68b3341927e8111f731cc6064717d45 (patch) | |
| tree | 42e5aa82c11d088d479ad467b8ddfc063811dd40 | |
| parent | a2bfa172e9184f220469a40611d70177e9c02bca (diff) | |
| download | tinymce-48fcf626c68b3341927e8111f731cc6064717d45.tar.gz tinymce-48fcf626c68b3341927e8111f731cc6064717d45.tar.bz2 tinymce-48fcf626c68b3341927e8111f731cc6064717d45.zip | |
passage à la version composer
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | public/index.php | 10 |
2 files changed, 2 insertions, 11 deletions
| @@ -1,2 +1 @@ | |||
| 1 | vendor/ | vendor/ \ No newline at end of file | |
| 2 | node_modules/ \ No newline at end of file | ||
diff --git a/public/index.php b/public/index.php index 233d85d..0c4c5f1 100644 --- a/public/index.php +++ b/public/index.php | |||
| @@ -20,7 +20,6 @@ if(isset($_GET['action']) && $_GET['action'] == 'editor_submit'){ | |||
| 20 | elseif(isset($_GET['action']) && $_GET['action'] == 'delete_article'){ | 20 | elseif(isset($_GET['action']) && $_GET['action'] == 'delete_article'){ |
| 21 | // récupération des données | 21 | // récupération des données |
| 22 | $post = json_decode(file_get_contents('php://input'), true); | 22 | $post = json_decode(file_get_contents('php://input'), true); |
| 23 | //echo $post['id']; | ||
| 24 | 23 | ||
| 25 | if(json_last_error() === JSON_ERROR_NONE){ | 24 | if(json_last_error() === JSON_ERROR_NONE){ |
| 26 | // Traitement côté serveur | 25 | // Traitement côté serveur |
| @@ -63,7 +62,6 @@ elseif(isset($_GET['action']) && $_GET['action'] == 'upload_image'){ | |||
| 63 | } | 62 | } |
| 64 | die; | 63 | die; |
| 65 | } | 64 | } |
| 66 | |||
| 67 | ?> | 65 | ?> |
| 68 | <!DOCTYPE html> | 66 | <!DOCTYPE html> |
| 69 | <html lang="fr"> | 67 | <html lang="fr"> |
| @@ -78,14 +76,8 @@ elseif(isset($_GET['action']) && $_GET['action'] == 'upload_image'){ | |||
| 78 | .hidden{ | 76 | .hidden{ |
| 79 | display: none; | 77 | display: none; |
| 80 | } | 78 | } |
| 81 | figure .align-center{ | ||
| 82 | |||
| 83 | } | ||
| 84 | figcaption { | ||
| 85 | |||
| 86 | } | ||
| 87 | </style> | 79 | </style> |
| 88 | <script src="../node_modules/tinymce/tinymce.min.js"></script> | 80 | <script src="../vendor/tinymce/tinymce/tinymce.min.js"></script> |
| 89 | <!-- peut-être qu'on devra utiliser un lien symbolique vers ce fichier dans /public --> | 81 | <!-- peut-être qu'on devra utiliser un lien symbolique vers ce fichier dans /public --> |
| 90 | <script> | 82 | <script> |
| 91 | let editors = {}; | 83 | let editors = {}; |
