fix for preview-mode
Merge pull request #11 from yosukesuzuki/editor-preview

fix for preview-mode