« MediaWiki:Gadget-specialchars.js » : différence entre les versions

Contenu supprimé Contenu ajouté
ThomasV (discussion | contributions)
Aucun résumé des modifications
ThomasV (discussion | contributions)
Aucun résumé des modifications
Ligne 19 :
m3 = tb.value.substring(startPos-3, startPos);
 
h = tb.value.substring(0, startPos-2);
f = tb.value.substring(startPos);
todo=true; i=2;
if(m[1]=="'"){
m = m[0]+"’";
Ligne 47 ⟶ 46 :
}
if(!todo) {
h = tb.value.substring(0, startPos-3); m=m3; todo=true; i= true3;
switch(m) {
case "^ff" : m = "ff"; break;
Ligne 58 ⟶ 57 :
if(todo) {
var textScroll = tb.scrollTop;
h = tb.value.substring(0, startPos-2i);
tb.value = h+m+f;
tb.selectionStart = startPos-2i + m.length;
tb.selectionEnd = tb.selectionStart;
tb.scrollTop = textScroll;