Welcome to the Club Penguin Wiki! Log in or Create an account to join the community!

User:Lisured/common.js: Difference between revisions

From the Club Penguin Wiki, the free, editable encyclopedia about Club Penguin
Jump to navigation Jump to search
imported>Lisured
Created page with "var textbox = $('#wpTextbox1'); textbox.keydown(function(e) { if (textbox.is(':focus') && e.which == 66 && e.ctrlKey && !e.altKey) { $('.tool-button[rel="bold"]').click();..."
 
imported>Lisured
No edit summary
Line 5: Line 5:
e.preventDefault();
e.preventDefault();
}
}
});
addOnloadHook(function() {
    var editTab = document.getElementById("ca-edit");
    if (!editTab) return;
    var editURL = editTab.getElementsByTagName("a")[0].href;
    addPortletLink("p-cactions", editURL + "&externaledit=true", "EE", "ca-exted", "External editor", "");
});
});

Revision as of 02:29, 23 April 2015

var textbox = $('#wpTextbox1');
textbox.keydown(function(e) {
	if (textbox.is(':focus') && e.which == 66 && e.ctrlKey && !e.altKey) {
		$('.tool-button[rel="bold"]').click();
		e.preventDefault();
	}
});

addOnloadHook(function() {
    var editTab = document.getElementById("ca-edit");
    if (!editTab) return;
    var editURL = editTab.getElementsByTagName("a")[0].href;
    addPortletLink("p-cactions", editURL + "&externaledit=true", "EE", "ca-exted", "External editor", "");
});