Jump to content

User:Equazcion/MoreEditButtons.js

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Equazcion (talk | contribs) at 01:39, 19 October 2013 (Created page with '$('.editButtons').clone(true).insertBefore('#wpTextbox1').attr('class','editButtons2') .css('padding','5px').css('border','1px lightgray solid').css('background...'). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
$('.editButtons').clone(true).insertBefore('#wpTextbox1').attr('class','editButtons2')
	.css('padding','5px').css('border','1px lightgray solid').css('background-color','#F0F0F0').css('margin','5px');
	
$('.editButtons').clone(true).insertAfter('#mw-previewheader').attr('class','editButtons3')
	.css('padding','5px').css('border','1px lightgray solid').css('background-color','#F0F0F0').css('margin','5px').find('span.editHelp').css('color','black')
	.parent().find('#wpPreview').attr('form','editform')
	.parent().find('#wpSave').attr('form','editform')
	.parent().find('#wpDiff').attr('form','editform'); 
	
$('#wpSummary').keydown(function(event){
	if (event.keyCode == 13) {
		$('form#editform').submit();
		return false;
	}
});