summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/css/body.css9
-rw-r--r--public/js/tinymce.js2
-rw-r--r--src/controller/installation.php4
3 files changed, 12 insertions, 3 deletions
diff --git a/public/css/body.css b/public/css/body.css
index 20e53e0..226e610 100644
--- a/public/css/body.css
+++ b/public/css/body.css
@@ -105,6 +105,15 @@ article .logo2
105 /*max-height: 400;*/ 105 /*max-height: 400;*/
106 overflow: hidden; 106 overflow: hidden;
107} 107}
108.new_content button
109{
110 cursor: pointer;
111}
112.new_content button:hover
113{
114 background-color: #ffff00;
115 border-radius: 4px;
116}
108article img 117article img
109{ 118{
110 max-width: 100%; /* règle compliquée, vérifier selon la page et la taille de l'image */ 119 max-width: 100%; /* règle compliquée, vérifier selon la page et la taille de l'image */
diff --git a/public/js/tinymce.js b/public/js/tinymce.js
index 88d8474..307c384 100644
--- a/public/js/tinymce.js
+++ b/public/js/tinymce.js
@@ -175,7 +175,7 @@ function submitArticle(id, page = '', clone = null)
175 // clic sur "tout enregistrer" 175 // clic sur "tout enregistrer"
176 if(id[0] === 'n' && page === 'article'){ 176 if(id[0] === 'n' && page === 'article'){
177 const prefixes = ['t', 'p', 'i', 'd']; 177 const prefixes = ['t', 'p', 'i', 'd'];
178 const allElemsWithId = document.querySelectorAll('[class="data"]'); 178 const allElemsWithId = document.querySelectorAll('.data');
179 content = {}; 179 content = {};
180 var id_from_builder; 180 var id_from_builder;
181 181
diff --git a/src/controller/installation.php b/src/controller/installation.php
index 64ed94e..a8e427c 100644
--- a/src/controller/installation.php
+++ b/src/controller/installation.php
@@ -95,9 +95,9 @@ function makeStartPage(EntityManager $entityManager){
95 $breadcrumb = new Node('breadcrumb', NULL, [], 2, $header, NULL, NULL); 95 $breadcrumb = new Node('breadcrumb', NULL, [], 2, $header, NULL, NULL);
96 $head_login = new Node('head', NULL, ["stop" => true, 'css_array' => ['body', 'head', 'nav'], 'js_array' => ['main']], 1, NULL, $connection, NULL); 96 $head_login = new Node('head', NULL, ["stop" => true, 'css_array' => ['body', 'head', 'nav'], 'js_array' => ['main']], 1, NULL, $connection, NULL);
97 $login = new Node('login', NULL, [], 1, $main, $connection, NULL); 97 $login = new Node('login', NULL, [], 1, $main, $connection, NULL);
98 $head_edit_menu = new Node('head', NULL, ['css_array' => ['body', 'head', 'nav', 'menu'], 'js_array' => ['main', 'menu']], 1, NULL, $menu_paths, NULL); 98 $head_edit_menu = new Node('head', NULL, ['css_array' => ['body', 'head', 'nav', 'menu', 'foot'], 'js_array' => ['main', 'menu']], 1, NULL, $menu_paths, NULL);
99 $bloc_edit_menu = new Node('menu', NULL, [], 1, $main, $menu_paths, NULL); 99 $bloc_edit_menu = new Node('menu', NULL, [], 1, $main, $menu_paths, NULL);
100 $head_new_page = new Node('head', NULL, ['css_array' => ['body', 'head', 'nav', 'new_page'], 'js_array' => ['main', 'new_page']], 1, NULL, $new_page, NULL); 100 $head_new_page = new Node('head', NULL, ['css_array' => ['body', 'head', 'nav', 'new_page', 'foot'], 'js_array' => ['main', 'new_page']], 1, NULL, $new_page, NULL);
101 $bloc_new_page = new Node('new_page', NULL, [], 1, $main, $new_page, NULL); 101 $bloc_new_page = new Node('new_page', NULL, [], 1, $main, $new_page, NULL);
102 102
103 /* -- table image -- */ 103 /* -- table image -- */