Changelog entry.
Fixed JSLint issue.
Fixed: De-captioning unaligned image produces a widget without a paragraph wrapper.
Use editor#activeEnterMode rather than config#enterMode.
Made code more correct - avoid introducing edge cases.