How to change bahaviour enter/backspace pressed in WYMEDITOR

Posted by liysd on Stack Overflow See other posts from Stack Overflow or by liysd
Published on 2010-04-23T17:52:43Z Indexed on 2010/04/23 17:53 UTC
Read the original article Hit count: 282

Filed under:
|
|
|

Hi all,

In Google Chrome after pressing enter key in WYMEDITOR a new

is created. How to change it? I would rather insert
tag as it happens after shift-enter combination. (In fact shif-enter creates two
).

Similar question concerns backspace pressed on the beginning of paragraph. How to change this behaviour to erase paragraph (or other) only when it is empty and do nothing otherwise.

I'll be greatful for any hints.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery