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.
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 ifdir='rtl'
is set on thehtml
node.I've also renamed
diffLeft
anddiffTop
tooffsetX
andoffsetY
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.