Content deleted Content added
PleaseStand (talk | contribs) quick fix for too small textbox when mw:Help:Extension:WikiEditor/Realtime Preview is enabled on the wiki |
PleaseStand (talk | contribs) add refsDiv directly under #editform, not within .wikiEditor-ui (fixes overlap issue) |
||
(One intermediate revision by the same user not shown) | |||
Line 563:
return false;
}
}▼
return mainTextbox.value;▼
Line 624 ⟶ 609:
refsDiv.appendChild(refsButton);
refsDiv.appendChild(convertButton);
// Find position within the edit form to insert it at
var refsDivPos = mainTextbox, refsDivPosParent = refsDivPos.parentNode;
while (refsDivPosParent !== editForm) {
refsDivPos = refsDivPosParent;
refsDivPosParent = refsDivPos.parentNode;
if (!refsDivPosParent) {
refsDivPosParent = refsDivPos.parentNode;
break;
}
▲ }
refsDivPos = refsDivPos.nextSibling;
if (refsDivPos && refsDivPos.classList.contains("wikiEditor-ui-clear")) {
refsDivPos = refsDivPos.nextSibling;
}
refsDivPosParent.insertBefore(refsDiv, refsDivPos);
} catch(e) {
}
|