Fix markdown/preview tab for mobile

Fixes #3813

- Add actions and bind attributes
- Handle toggleView action

Add showPreview action to controller

Implement action and bind attribute