« Return to the main article
Enter => Paragraph <p> Shift + Enter => New line <br>
Instead of CSS, you can use the onkeydown event: if(event.keyCode==13){ //current range, created from current selection rng.pasteHTML('<BR>'); event.returnValue=false; }
Enter => Paragraph <p> Shift + Enter => New line <br>
Instead of CSS, you can use the onkeydown event: if(event.keyCode==13){ //current range, created from current selection rng.pasteHTML('<BR>'); event.returnValue=false; }