[TAB] inside textarea

Allow textarea's to accept TAB key (ASCII code 63)
Could use some enhancements, like usage of SHIFT+Tab, or replacing current selected text, etc.
Originally from
https://djkeh.github.io/articles/Typing-tab-key-inside-textarea-using-javascript/

CodeFunctionName
What is this?

Public

Tested

Imported
<!-- HTML -- >
<html >
<Textarea Name="CodeBody" ID="textarea_id" placeholder="Full body of the code" rows="30" class="form-control border-primary" > <%=ThisCodeBody% > </Textarea >
</html >


<!-- Jscript -- >
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js" > </script >
<script type="text/javascript" >
$('#textarea_id').on('keydown', function(keyEvent) {
TabManager.enableTab(this, keyEvent);
} );
</script >

Textarea boxes when adding new code in MyDev.net

Views 3,560

Downloads 1,504

CodeID
DB ID