1/** 2 * Permet l'insertion des smileys de guppy dans l'éditeur 3 * 4 * @param string Nom de l'éditeur 5 * @param string Chemin du smiley 6 * @param string Attribut alt 7 * @param integer Largeur du smiley 8 * @param integer Hauteur du smiley 9 * 10 * @return string 11 */ 12function insert_smiley_in_editor(instanceName, src, alt, width, height) 13{ 14 if (typeof(CKEDITOR) === 'object') { 15 insert_smiley_in_CKEditor(instanceName, src, alt, width, height); 16 } else { 17 return false; 18 } 19}; 20 21// -------------------------------------------------------------------- 22 23/** 24 * Permet l'insertion des smileys de guppy dans l'éditeur CKEditor 25 * 26 * @param string Nom de l'éditeur 27 * @param string Chemin du smiley 28 * @param string Attribut alt 29 * @param integer Largeur du smiley 30 * @param integer Hauteur du smiley 31 * @return string 32 */ 33function insert_smiley_in_CKEditor(instanceName, src, alt, width, height) 34{ 35 var oEditor = CKEDITOR.instances[instanceName]; 36 37 if ( oEditor.mode == "wysiwyg") { 38 var img = "<img src=\""+src+"\" alt=\""+alt+"\" style=\"width:"+width+"px; height:"+height+"px; border:0px solid;\" />"; 39 40 oEditor.insertHtml(img); 41 } else { 42 return false; 43 } 44};
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.