EDT-635 Pasting in a formatting box leaves no spacing

https://youtrack.mindtouch.us/issue/EDT-635

+ fixed selection issue on toggling editor mode