};\r
\r
/**\r
- * Complete fomratting process applied to a text.\r
+ * Complete formatting process applied to a text.\r
* - Remove HTML markups\r
* - Substitutes wiki syntax with HTML\r
* - Replaces URL with 'a' tag\r
};\r
\r
euphorik.Formatter.prototype.traiterURL = function(m, nick) {\r
- var thisFormater = this;\r
+ var thisFormatter = this;\r
var traitementUrl = function(url) { \r
// si ya pas de protocole on rajoute "http://"\r
- if (!thisFormater.regexTestIfProtocolExists.test(url)) {\r
+ if (!thisFormatter.regexTestIfProtocolExists.test(url)) {\r
url = "http://" + url;\r
}\r
- var extension = thisFormater.getShort(url);\r
- return "<a " + (extension[1] ? "title=\"" + (nick ? thisFormater.traiterPourFenetreLightBox(nick, url) + ": " : "") + thisFormateur.traiterPourFenetreLightBox(m, url) + "\"" + " rel=\"lightbox\"" : "") + " href=\"" + url + "\" >[" + extension[0] + "]</a>";\r
+ var extension = thisFormatter.getShort(url);\r
+ return "<a " + (extension[1] ? "title=\"" + (nick ? thisFormatter.traiterPourFenetreLightBox(nick, url) + ": " : "") + thisFormateur.traiterPourFenetreLightBox(m, url) + "\"" + " rel=\"lightbox\"" : "") + " href=\"" + url + "\" >[" + extension[0] + "]</a>";\r
};\r
return m.replace(this.regexUrl, traitementUrl);\r
};\r
* TODO : trouver un moyen pour que les smiles puissent ĂȘtre conservĂ©s\r
*/\r
euphorik.Formatter.prototype.traiterPourFenetreLightBox = function(M, urlCourante) {\r
- var thisFormater = this;\r
+ var thisFormatter = this;\r
var traitementUrl = function(url) {\r
- return "[" + thisFormater.getShort(url)[0] + (urlCourante === url ? "*" : "") + "]";\r
+ return "[" + thisFormatter.getShort(url)[0] + (urlCourante === url ? "*" : "") + "]";\r
};\r
\r
return this.remplacerBalisesHTML(this.supprimerSmiles(M)).replace(this.regexUrl, traitementUrl);\r