how to change actions on key pressed in contenteditable tags.

Posted by liysd on Stack Overflow See other posts from Stack Overflow or by liysd
Published on 2010-05-04T17:55:59Z Indexed on 2010/05/04 17:58 UTC
Read the original article Hit count: 191

when I press 'enter' in contenteditable area a new <div> is produced what I rather want to add <br /> tag. How can I manipulate this behaviour. How is it done in WYMeditor. Is there any other method than preventdefault() and handle it ?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about events