<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.freecapitalists.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js%2Fedit.js</id>
	<title>MediaWiki:Common.js/edit.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.freecapitalists.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js%2Fedit.js"/>
	<link rel="alternate" type="text/html" href="https://wiki.freecapitalists.org/index.php?title=MediaWiki:Common.js/edit.js&amp;action=history"/>
	<updated>2026-08-17T11:44:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.freecapitalists.org/index.php?title=MediaWiki:Common.js/edit.js&amp;diff=6714&amp;oldid=prev</id>
		<title>Forgottenman: edittools...</title>
		<link rel="alternate" type="text/html" href="https://wiki.freecapitalists.org/index.php?title=MediaWiki:Common.js/edit.js&amp;diff=6714&amp;oldid=prev"/>
		<updated>2010-11-11T14:26:03Z</updated>

		<summary type="html">&lt;p&gt;edittools...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/** Edittools javascript loader ************************************************&lt;br /&gt;
 *&lt;br /&gt;
 *  Description: Pulls in [[MediaWiki:Edittools.js]]. Includes a cache-bypassing&lt;br /&gt;
 *  version number in the URL in order to allow any changes to the edittools to&lt;br /&gt;
 *  be rapidly deployed to users.&lt;br /&gt;
 *&lt;br /&gt;
 *  Note that, by default, this function does nothing unless the element with&lt;br /&gt;
 *  the ID &amp;quot;editpage-specialchars&amp;quot; (which contains the old edittools code in&lt;br /&gt;
 *  [[MediaWiki:Edittools]], and will be retained as a placeholder in the new&lt;br /&gt;
 *  implementation) has a class named &amp;quot;edittools-version-NNN&amp;quot;, where NNN is a&lt;br /&gt;
 *  number.  If the class name has &amp;quot;test&amp;quot; before the number, the code will only&lt;br /&gt;
 *  run for users who have set &amp;quot;window.testJsEdittools = true&amp;quot; in their user JS.&lt;br /&gt;
 *  The &amp;quot;test&amp;quot; should be retained in the class name until the new edittools&lt;br /&gt;
 *  implementation is ready and fully tested, and until at least 30 days have&lt;br /&gt;
 *  passed since this loader stub was added (which will be in 27 June 2008).&lt;br /&gt;
 *&lt;br /&gt;
 *  For compatibility with Alex Smotrov&amp;#039;s original implementation, on which this&lt;br /&gt;
 *  code is loosely based (see [[mw:User talk:Alex Smotrov/edittools.js]]), this&lt;br /&gt;
 *  loader can also be disabled by setting &amp;quot;window.noDefaultEdittools = true&amp;quot;.&lt;br /&gt;
 *&lt;br /&gt;
 *  Maintainers: [[User:Ilmari Karonen]]&lt;br /&gt;
 */&lt;br /&gt;
 &lt;br /&gt;
//Prevent the static edittools from flashing before the compact edittools below is loaded.&lt;br /&gt;
appendCSS(&amp;#039;div.edittools-text { display:none; }&amp;#039;);&lt;br /&gt;
 &lt;br /&gt;
addOnloadHook(function () {&lt;br /&gt;
    // needs to be deferred until the DOM has fully loaded&lt;br /&gt;
    var placeholder = document.getElementById(&amp;quot;editpage-specialchars&amp;quot;);&lt;br /&gt;
    if (!placeholder || window.noDefaultEdittools) {&lt;br /&gt;
      //Show the static edittools again for users with &amp;quot;window.noDefaultEdittools=true&amp;quot;.&lt;br /&gt;
      appendCSS(&amp;#039;div.edittools-text { display:block; }&amp;#039;);&lt;br /&gt;
      return;&lt;br /&gt;
    }&lt;br /&gt;
    var match = /(?:^| )edittools-version-(\d+)(?: |$)/.exec(placeholder.className);&lt;br /&gt;
 &lt;br /&gt;
    // set window.testJsEdittools = true to enable testing before full deployment&lt;br /&gt;
    if (!match &amp;amp;&amp;amp; window.testJsEdittools)&lt;br /&gt;
        match = /(?:^| )edittools-version-(test\d+)(?: |$)/.exec(placeholder.className);&lt;br /&gt;
 &lt;br /&gt;
    if (!match) return;&lt;br /&gt;
    var url = wgScript + &amp;#039;?title=MediaWiki:Edittools.js&amp;amp;action=raw&amp;amp;ctype=text/javascript&amp;amp;nocache=&amp;#039; + match[1];&lt;br /&gt;
    importScriptURI(url);&lt;br /&gt;
});&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
// Turn on spellchecking in the edit summary field, for Firefox. &lt;br /&gt;
// Temporary until [[bugzilla:21604]] is deployed&lt;br /&gt;
addOnloadHook( function() {&lt;br /&gt;
  var wpSummary = document.getElementById( &amp;quot;wpSummary&amp;quot; );&lt;br /&gt;
  if ( wpSummary &amp;amp;&amp;amp; typeof wpSummary.spellcheck != undefined )&lt;br /&gt;
    wpSummary.spellcheck = true;&lt;br /&gt;
} );&lt;br /&gt;
 &lt;br /&gt;
/* Remove when http://www.mediawiki.org/wiki/Special:Code/MediaWiki/65899 is deployed */&lt;br /&gt;
if( wgPageName == &amp;quot;Special:Upload&amp;quot; &amp;amp;&amp;amp; getURLParamValue( &amp;quot;wpForReUpload&amp;quot;) == &amp;quot;1&amp;quot; ) {&lt;br /&gt;
 appendCSS( &amp;quot;tr.mw-htmlform-field-Licenses {display:none;}&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
//&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Forgottenman</name></author>
	</entry>
</feed>