Content deleted Content added
PleaseStand (talk | contribs) m removing unnecessary notice |
PleaseStand (talk | contribs) +code to clear undo history after segregation |
||
Line 417:
// Return both the combined output and the ref codes that were not used.
return {wikiText: scanner.wikiText, unusedRefs: refCodes};
}
// Clears the undo history of a textarea by removing it
// from the DOM and then inserting it again.
function clearUndoHistory(ta) {
var pn = ta.parentNode;
var ns = ta.nextSibling;
pn.removeChild(ta);
pn.insertBefore(ta, ns);
}
Line 491 ⟶ 500:
// Update the textbox
mainTextbox.value = segFormat.wikiText;
clearUndoHistory(mainTextbox);
// wikEd compatibility (textarea -> frame)
Line 559 ⟶ 569:
// Update the textbox
mainTextbox.value = segFormat.wikiText;
clearUndoHistory(mainTextbox);
// wikEd compatibility (textarea -> frame)
|