olivier-m / minislate

A wysiwyg experiment
http://olivier-m.github.io/minislate/
MIT License
73 stars 9 forks source link

Minimal RTL support #5

Open yohanboniface opened 9 years ago

yohanboniface commented 9 years ago

This PR adapts the toolbar alignment behaviour when in RTL mode (for example for Arabic).

It can be set with a new rtl option (that defaults to false), plus it's automatic if dir='rtl' is set on the html node.

I've also renamed diffLeft and diffTop to offsetX and offsetY because I though that was more conventional naming for such values, but of course this change it not needed for the PR, so if you disagree with it I'll revert it. Also, given that minislate is not announced as stable we can tolerate such break of the API.

yohanboniface commented 9 years ago

Piing :)