TC for #1509
Wait the editor to load
Click the editing area
Type "a " (a + [space])
Hit the "Insert HTML"
Switch to source. Expected results: "
<p>a Some text</a>
".