Sign In with GitHub…
New Snippet

JavaScript

document.querySelectorAll('textarea').forEach(function(textarea) {
	textarea.addEventListener('keydown', function(e) {
		if (e.key === 'Tab') {
			e.preventDefault();
			document.execCommand('insertText', false, '\t')
		}
	});
});