logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • David Schmidt
    • Posted on Fri 15 Oct 2004

    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; }

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: