xing/wysihtml5 — pull request #344 by DouweM (2013-03-07 01:28:53+00:00)
Title: Wrap text outside of <p> in <p> when hitting enter when useLineBreaks==false

Suppose for some reason the body ends up like this (and it has for me):

```html

Hey

Just testing|
```

Currently, when hitting return with the caret after `Just testing`, we end up this this:

```html

Hey

Just testing

|
```

Or worse (in Chrome), this:

```html

Hey

Just testing

|

```

With this fix, when `useLineBreaks == false`, the result will be a clean:

```html

Hey

Just testing

|

```
(The `
` is just there to give the `

` some height, exactly as Wysihtml5 currently behaves when hitting enter from within a `

`.)

It also works great with Shift-Enter, in which case the result would be:

```html

Hey

Just testing

|

```