How to change behavior enter/backspace pressed in WYMEDITOR

439 Views Asked by At

In Google Chrome after pressing enter key in WYMEDITOR a new <p> is created. How to change it? I would rather insert <br /> tag as it happens after shift-enter combination. (In fact shift-enter creates two <br />).

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

I'll be grateful for any hints.

1

There are 1 best solutions below

0
On

Considering WYMEditor takes a markup approach I'm pretty sure they intended not having an option for adding <br /> tags.

I reckon you could write a plugin for the behavior you're looking for..