diff options
| author | git-pc-greta <ordipolo@gmx.fr> | 2025-01-30 16:27:18 +0100 |
|---|---|---|
| committer | git-pc-greta <ordipolo@gmx.fr> | 2025-01-30 16:27:18 +0100 |
| commit | 376bb178196bdea3604e230436dbabb8259ce74c (patch) | |
| tree | beb165c128ba60b780cebd2603980dd41af750da /src | |
| parent | 63759dbbf023daa8f7f310b914a04310a4770154 (diff) | |
| download | ckeditor5-376bb178196bdea3604e230436dbabb8259ce74c.tar.gz ckeditor5-376bb178196bdea3604e230436dbabb8259ce74c.tar.bz2 ckeditor5-376bb178196bdea3604e230436dbabb8259ce74c.zip | |
declare(strict_types=1);
Diffstat (limited to 'src')
| -rw-r--r-- | src/integration/ckeditor5/CKEditor.php | 4 | ||||
| -rw-r--r-- | src/integration/ckeditor5/image_upload.php | 2 | ||||
| -rw-r--r-- | src/integration/ckeditor5/view.php | 2 | ||||
| -rw-r--r-- | src/view/templates/page.php | 20 |
4 files changed, 7 insertions, 21 deletions
diff --git a/src/integration/ckeditor5/CKEditor.php b/src/integration/ckeditor5/CKEditor.php index 9fa0f42..58fa42c 100644 --- a/src/integration/ckeditor5/CKEditor.php +++ b/src/integration/ckeditor5/CKEditor.php | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | <?php | 1 | <?php |
| 2 | // src/integration/ckeditor5/CKEditor.php | 2 | // src/integration/ckeditor5/CKEditor.php |
| 3 | 3 | ||
| 4 | declare(strict_types=1); | ||
| 5 | |||
| 4 | class CKEditor | 6 | class CKEditor |
| 5 | { | 7 | { |
| 6 | public const string INTEGRATION_PATH = 'src/integration/ckeditor5/'; | 8 | public const string INTEGRATION_PATH = 'src/integration/ckeditor5/'; |
| @@ -17,7 +19,7 @@ class CKEditor | |||
| 17 | private string $from = ''; | 19 | private string $from = ''; |
| 18 | //private string $id_article = ''; | 20 | //private string $id_article = ''; |
| 19 | 21 | ||
| 20 | private string $php_ini_max_size; | 22 | private int $php_ini_max_size; |
| 21 | private string $css_editor_tag = ''; | 23 | private string $css_editor_tag = ''; |
| 22 | private string $css_outside_editor_tag = ''; | 24 | private string $css_outside_editor_tag = ''; |
| 23 | private string $toolbar_language = 'fr'; | 25 | private string $toolbar_language = 'fr'; |
diff --git a/src/integration/ckeditor5/image_upload.php b/src/integration/ckeditor5/image_upload.php index d549690..5cef369 100644 --- a/src/integration/ckeditor5/image_upload.php +++ b/src/integration/ckeditor5/image_upload.php | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | <?php | 1 | <?php |
| 2 | // src/integration/ckeditor5/image_upload.php | 2 | // src/integration/ckeditor5/image_upload.php |
| 3 | 3 | ||
| 4 | declare(strict_types=1); | ||
| 5 | |||
| 4 | // le "simple upload adapter" envoie un POST appelé: $_FILES['upload'] | 6 | // le "simple upload adapter" envoie un POST appelé: $_FILES['upload'] |
| 5 | // en retour il attend impérativement des données au format JSON du genre: {"url": "data/page/images/monfichier.jpg"} | 7 | // en retour il attend impérativement des données au format JSON du genre: {"url": "data/page/images/monfichier.jpg"} |
| 6 | // cette adresse doit permettre à l'éditeur de télécharger l'image afficher de manière normale: <img scr="data/page/images/monfichier.jpg"> | 8 | // cette adresse doit permettre à l'éditeur de télécharger l'image afficher de manière normale: <img scr="data/page/images/monfichier.jpg"> |
diff --git a/src/integration/ckeditor5/view.php b/src/integration/ckeditor5/view.php index 4bcad52..b6e6a5f 100644 --- a/src/integration/ckeditor5/view.php +++ b/src/integration/ckeditor5/view.php | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | <?php | 1 | <?php |
| 2 | // src/integration/ckeditor5/view.php | 2 | // src/integration/ckeditor5/view.php |
| 3 | 3 | ||
| 4 | declare(strict_types=1); | ||
| 5 | |||
| 4 | $submit_action = 'index.php?from=' . $this->page . '&action=submit_editor&id=' . $id; | 6 | $submit_action = 'index.php?from=' . $this->page . '&action=submit_editor&id=' . $id; |
| 5 | 7 | ||
| 6 | $cancel_button = 'index.php?page=' . $this->page; | 8 | $cancel_button = 'index.php?page=' . $this->page; |
diff --git a/src/view/templates/page.php b/src/view/templates/page.php deleted file mode 100644 index 3ea227a..0000000 --- a/src/view/templates/page.php +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | <!DOCTYPE html> | ||
| 2 | <html lang="fr"> | ||
| 3 | <head> | ||
| 4 | <meta charset="utf-8"> | ||
| 5 | <title></title> | ||
| 6 | <link rel="icon" type="image/png" href=""> | ||
| 7 | <?= $ckeditor->getCSSOutsideEditorTag() ?> | ||
| 8 | <?= $ckeditor->getCSSEditorTag() ?> | ||
| 9 | </head> | ||
| 10 | <body> | ||
| 11 | <div> | ||
| 12 | <?php | ||
| 13 | foreach ($articles_content as $article) | ||
| 14 | { | ||
| 15 | echo $article; | ||
| 16 | } | ||
| 17 | ?> | ||
| 18 | </div> | ||
| 19 | </body> | ||
| 20 | </html> | ||
