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
Merge pull request #4473 from ErisDS/editor-fix

Fix issue with editor and images