User:AoV2/tabs in textarea.js

function intercept(e){ if(e.keyCode == 9) { // U+0009 CHARACTER TABULATION insertTags("\t", "", ""); return false; }			else return true; }

function literal_tab_in_textarea { t = document.getElementById("wpTextbox1"); if(t) t.onkeydown = intercept; }

addOnloadHook(literal_tab_in_textarea);