Fix issue with editor and images

ref #4459

- move initMarkers back to its original home
- add new test that a post with an image can be edited