Fixed so directionality setting gets applied to the preview dialog as well as the editor body element.
Fixed to "npm test" matches the travis build steps.