function tabs_to_spaces(event) {
            if (event.keyCode == 9) {
                document.execCommand('insertText', false, '    ');
                event.preventDefault();
            }
        }
/* Tab key will write four spaces (otherwise it would jump to the next editable item */
Tab key will write four spaces (otherwise it would jump to the next editable item
Tab key will write four spaces ( otherwise it would jump to the next editable item
function tabs_to_spaces(event) {
            if (event.keyCode == 9) {
                document.execCommand('insertText', false, '    ');
                event.preventDefault();
            }
        }
function tabs_to_spaces ( event ) { if ( event . keyCode == 9 ) { document . execCommand ( 'insertText' , false , '    ' ) ; event . preventDefault ( ) ; } }
Tab key will write four spaces (otherwise it would jump to the next editable item
Tab key will write four spaces ( otherwise it would jump to the next editable item