PageSourceSearch

https://kms.fr/kms_wp_org/wp-content/plugins/organisateur/Js/sumernote.js

js kms.fr collected 2026-10-04 00:01:37 UTC 11,946 bytes, 384 lines download raw bytes

1$(document).ready(function() 
2{
3    /**
4     * Auteur:Zakaria
5     * declenche la methode send file lorsque une image est téléchargé
6     */
7    $('#summernote').summernote({
8        height: 200,
9        toolbar: [
10          ['style', ['style']],
11          ['font', ['bold', 'italic', 'underline', 'clear']],
12          ['fontname', ['fontname']],
13          ['fontsize', ['fontsize']],
14          ['color', ['color']],
15          ['para', ['ul', 'ol', 'paragraph']],
16          ['table', ['table']],
17          ['insert', ['link', 'picture', 'video']],
18          ['view', ['fullscreen', 'codeview', 'help']],
19        ],
20        callbacks: {
21            /**
22             * Auteur:Zakaria
23             * Evenement déclencher lorsque une image et ajouter dans
24             * l'editeur.
25             * @param files le fichier ajoutez dans l'éditeur
26             * @param editor l'instance editeur
27             * @param welEditable option 
28             * @see https://summernote.org/deep-dive/#insertimage
29             */
30            onImageUpload: function(files, editor, welEditable) {
31
32                for (var i = files.length - 1; i >= 0; i--) {
33                    sendFile(files[i], this);
34                }
35            }
36        }
37        
38    });
39
40    /* Auteur:Zakaria
41    *creer champ editeur pour le champ
42    * declenche la methode send file lorsque une image est téléchargé
43    */
44    $('#dossard').summernote({
45       height: 200,
46       toolbar: [
47          ['style', ['style']],
48          ['font', ['bold', 'italic', 'underline', 'clear']],
49          ['fontname', ['fontname']],
50          ['fontsize', ['fontsize']],
51          ['color', ['color']],
52          ['para', ['ul', 'ol', 'paragraph']],
53          ['table', ['table']],
54          ['insert', ['link', 'picture', 'video']],
55          ['view', ['fullscreen', 'codeview', 'help']],
56        ],
57       callbacks: {
58           /**
59            * Auteur:Zakaria
60            * Evenement déclencher lorsque une image et ajouter dans
61            * l'editeur.
62            * @param files le fichier ajoutez dans l'éditeur
63            * @param editor l'instance editeur
64            * @param welEditable option 
65            * @see https://summernote.org/deep-dive/#insertimage
66            */
67           onImageUpload: function(files, editor, welEditable) {
68               for (var i = files.length - 1; i >= 0; i--) {
69                   sendFile(files[i], this);
70               }
71           }
72       }       
73    });
74
75    /* Auteur:Zakaria
76    *creer champ editeur pour le champ
77    * declenche la methode send file lorsque une image est téléchargé
78    */
79    $('#depart').summernote({
80    height: 200,
81    toolbar: [
82          ['style', ['style']],
83          ['font', ['bold', 'italic', 'underline', 'clear']],
84          ['fontname', ['fontname']],
85          ['fontsize', ['fontsize']],
86          ['color', ['color']],
87          ['para', ['ul', 'ol', 'paragraph']],
88          ['table', ['table']],
89          ['insert', ['link', 'picture', 'video']],
90          ['view', ['fullscreen', 'codeview', 'help']],
91        ],
92    callbacks: {
93        /**
94         * Auteur:Zakaria
95         * Evenement déclencher lorsque une image et ajouter dans
96         * l'editeur.
97         * @param files le fichier ajoutez dans l'éditeur
98         * @param editor l'instance editeur
99         * @param welEditable option 
100         * @see https://summernote.org/deep-dive/#insertimage
101         */
102        onImageUpload: function(files, editor, welEditable) {
103            for (var i = files.length - 1; i >= 0; i--) {
104                sendFile(files[i], this);
105            }
106        }
107    }
108    
109    });
110
111    /* Auteur:Zakaria
112    *creer champ editeur pour le champ
113    * declenche la methode send file lorsque une image est téléchargé
114    */
115    $('#arriver').summernote({
116    height: 200,
117    toolbar: [
118          ['style', ['style']],
119          ['font', ['bold', 'italic', 'underline', 'clear']],
120          ['fontname', ['fontname']],
121          ['fontsize', ['fontsize']],
122          ['color', ['color']],
123          ['para', ['ul', 'ol', 'paragraph']],
124          ['table', ['table']],
125          ['insert', ['link', 'picture', 'video']],
126          ['view', ['fullscreen', 'codeview', 'help']],
127        ],
128    callbacks: {
129        /**
130         * Auteur:Zakaria
131         * Evenement déclencher lorsque une image et ajouter dans
132         * l'editeur.
133         * @param files le fichier ajoutez dans l'éditeur
134         * @param editor l'instance editeur
135         * @param welEditable option 
136         * @see https://summernote.org/deep-dive/#insertimage
137         */
138        onImageUpload: function(files, editor, welEditable) {
139            for (var i = files.length - 1; i >= 0; i--) {
140                sendFile(files[i], this);
141            }
142        }
143    }
144    
145    });
146
147
148    /* Auteur:Zakaria
149    *creer champ editeur pour le champ
150    * declenche la methode send file lorsque une image est téléchargé
151    */
152    $('#precisionNavette').summernote({
153    height: 200,
154    toolbar: [
155          ['style', ['style']],
156          ['font', ['bold', 'italic', 'underline', 'clear']],
157          ['fontname', ['fontname']],
158          ['fontsize', ['fontsize']],
159          ['color', ['color']],
160          ['para', ['ul', 'ol', 'paragraph']],
161          ['table', ['table']],
162          ['insert', ['link', 'picture', 'video']],
163          ['view', ['fullscreen', 'codeview', 'help']],
164        ],
165    callbacks: {
166        /**
167         * Auteur:Zakaria
168         * Evenement déclencher lorsque une image et ajouter dans
169         * l'editeur.
170         * @param files le fichier ajoutez dans l'éditeur
171         * @param editor l'instance editeur
172         * @param welEditable option 
173         * @see https://summernote.org/deep-dive/#insertimage
174         */
175        onImageUpload: function(files, editor, welEditable) {
176            for (var i = files.length - 1; i >= 0; i--) {
177                sendFile(files[i], this);
178            }
179        }
180    }    
181    });
182
183
184    $('#precisionVestiaires').summernote({
185    height: 200,
186    toolbar: [
187          ['style', ['style']],
188          ['font', ['bold', 'italic', 'underline', 'clear']],
189          ['fontname', ['fontname']],
190          ['fontsize', ['fontsize']],
191          ['color', ['color']],
192          ['para', ['ul', 'ol', 'paragraph']],
193          ['table', ['table']],
194          ['insert', ['link', 'picture', 'video']],
195          ['view', ['fullscreen', 'codeview', 'help']],
196        ],
197    callbacks: {
198        /**
199         * Auteur:Zakaria
200         * Evenement déclencher lorsque une image et ajouter dans
201         * l'editeur.
202         * @param files le fichier ajoutez dans l'éditeur
203         * @param editor l'instance editeur
204         * @param welEditable option 
205         * @see https://summernote.org/deep-dive/#insertimage
206         */
207        onImageUpload: function(files, editor, welEditable) {
208            for (var i = files.length - 1; i >= 0; i--) {
209                sendFile(files[i], this);
210            }
211        }
212    }    
213    });
214
215    /* Auteur:Zakaria
216    *creer champ editeur pour le champ
217    * declenche la methode send file lorsque une image est téléchargé
218    */
219    $('#precisionHandicaper').summernote({
220    height: 200,
221    toolbar: [
222          ['style', ['style']],
223          ['font', ['bold', 'italic', 'underline', 'clear']],
224          ['fontname', ['fontname']],
225          ['fontsize', ['fontsize']],
226          ['color', ['color']],
227          ['para', ['ul', 'ol', 'paragraph']],
228          ['table', ['table']],
229          ['insert', ['link', 'picture', 'video']],
230          ['view', ['fullscreen', 'codeview', 'help']],
231        ],
232    callbacks: {
233        /**
234         * Auteur:Zakaria
235         * Evenement déclencher lorsque une image et ajouter dans
236         * l'editeur.
237         * @param files le fichier ajoutez dans l'éditeur
238         * @param editor l'instance editeur
239         * @param welEditable option 
240         * @see https://summernote.org/deep-dive/#insertimage
241         */
242        onImageUpload: function(files, editor, welEditable) {
243            for (var i = files.length - 1; i >= 0; i--) {
244                sendFile(files[i], this);
245            }
246        }
247    }
248    
249    });
250
251
252    /* Auteur:Zakaria
253    *creer champ editeur pour le champ
254    * declenche la methode send file lorsque une image est téléchargé
255    */
256    $('#textRaison').summernote({
257    height: 200,
258    toolbar: [
259          ['style', ['style']],
260          ['font', ['bold', 'italic', 'underline', 'clear']],
261          ['fontname', ['fontname']],
262          ['fontsize', ['fontsize']],
263          ['color', ['color']],
264          ['para', ['ul', 'ol', 'paragraph']],
265          ['table', ['table']],
266          ['insert', ['link', 'picture', 'video']],
267          ['view', ['fullscreen', 'codeview', 'help']],
268        ],
269    callbacks: {
270        /**
271         * Auteur:Zakaria
272         * Evenement déclencher lorsque une image et ajouter dans
273         * l'editeur.
274         * @param files le fichier ajoutez dans l'éditeur
275         * @param editor l'instance editeur
276         * @param welEditable option 
277         * @see https://summernote.org/deep-dive/#insertimage
278         */
279        onImageUpload: function(files, editor, welEditable) {
280            for (var i = files.length - 1; i >= 0; i--) {
281                sendFile(files[i], this);
282            }
283        }
284    }
285    
286    });
287
288
289    /* Auteur:Zakaria
290    *creer champ editeur pour le champ
291    * declenche la methode send file lorsque une image est téléchargé
292    */
293    $('#textDescr').summernote({
294    height: 200,
295    toolbar: [
296          ['style', ['style']],
297          ['font', ['bold', 'italic', 'underline', 'clear']],
298          ['fontname', ['fontname']],
299          ['fontsize', ['fontsize']],
300          ['color', ['color']],
301          ['para', ['ul', 'ol', 'paragraph']],
302          ['table', ['table']],
303          ['insert', ['link', 'picture', 'video']],
304          ['view', ['fullscreen', 'codeview', 'help']],
305        ],
306    callbacks: {
307        /**
308         * Auteur:Zakaria
309         * Evenement déclencher lorsque une image et ajouter dans
310         * l'editeur.
311         * @param files le fichier ajoutez dans l'éditeur
312         * @param editor l'instance editeur
313         * @param welEditable option 
314         * @see https://summernote.org/deep-dive/#insertimage
315         */
316        onImageUpload: function(files, editor, welEditable) {
317            for (var i = files.length - 1; i >= 0; i--) {
318                sendFile(files[i], this);
319            }
320        }
321    }
322    
323    });
324
325
326});//Fin du $(document).ready(function() 
327
328
329
330var Url_Site_Def="https://kms.fr";
331var str=window.location.href;
332if(str.search("html/")!=-1){
333    str=str.split("/html");
334    Url_Site_Def=str[0]+"/html";
335    console.log(str);
336}
337
338/**
339 * Auteur:Zakaria
340 * lorsque on quitte la page addEvent
341 * sans valider le formulaire
342 * on detruit la session
343 */
344if(window.location.href!=Url_Site_Def+"/kms_wp_org/addevent/"){
345    $.ajax({
346        type: "POST",
347        url: Url_Site_Def+'/kms_wp_org/wp-content/plugins/organisateur/detruireSession.php',
348        cache: false,
349        contentType: false,
350        processData: false,
351        
352        success: function(url) {
353            //alert(url);
354        }
355    });
356    console.log("ok");
357}
358
359
360
361/**
362 * Auteur:Zakaria
363 * envoie le fichier ajouter dans l'editeur sur la route editor-upload.php
364 * @param {*} file le fichier ajouter dans l'editeur
365 * @param {*} el l'editeur 
366 */
367function sendFile(file, el) {
368    var form_data = new FormData();
369    form_data.append('file', file);
370    $.ajax({
371        data: form_data,
372        type: "POST",
373        url: Url_Site_Def+'/kms_wp_org/wp-content/plugins/organisateur/editor-upload.php',
374        cache: false,
375        contentType: false,
376        processData: false,
377        
378        success: function(url) {
379            //alert(url);
380            $(el).summernote('editor.insertImage', url);
381        }
382    });
383}
384

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.