Edit your [[MediaWiki:Common.js]] and add this:
addOnloadHook( function() {
if (wgAction != "edit") return;
var saveButton = document.getElementById("wpSave");
if (!saveButton) return;
saveButton.disabled = true;
saveButton.value = "Save page (use preview first)";
saveButton.style.fontWeight = "normal";
document.getElementById("wpPreview").style.fontWeight = "bold";
} );
Good luck!
-- Jim R. Wilson (jimbojw)
On 10/2/07, GT4NE1 <gt4ne1(a)gmail.com> wrote:
Hi all,
I'm trying to implement the force preview before save feature on my
1.10 install to stop unnecessary edits.
I found these instructions for 1.8.2 and 1.9.0
http://www.mediawiki.org/wiki/Manual:FAQ#How_can_I_force_users_to_preview_b…
but I don't think that will work for 1.10
I then found the 1.10 javascript, but it doesn't say where to place
it. Also, this is for forcing a preview before a save for certain
groups, but I want it to be everyone.
http://www.mediawiki.org/wiki/Manual:Force_preview
Any idea which method I should use? And where to implement the 1.10 method?
Thanks,
-GT
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l