You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin doesn't work in RTL, at ALL, not even a little.
We can't even use a workaround like direction:ltr;, like we can in most LTR-only plugins, because it appends items directly to the body.
Instead of appending text directly to the body for text measurement purposes, can we append it to a <div style="direction:ltr;"> INSIDE the body?
This would be a simple workaround for RTL websites.
Edit:
As a workaround, I modified the library as follows:
I added $('<div style="direction:ltr;text-align:left;"><div id="awesomecloud-text-marker"></div></div>').prependTo($('body'));
Then replaced all instances of $('body') with $('#awesomecloud-text-marker'); inside the library itself, and it works, now.
The text was updated successfully, but these errors were encountered:
Hi!
This plugin doesn't work in RTL, at ALL, not even a little.
We can't even use a workaround like direction:ltr;, like we can in most LTR-only plugins, because it appends items directly to the body.
Instead of appending text directly to the body for text measurement purposes, can we append it to a
<div style="direction:ltr;">
INSIDE the body?This would be a simple workaround for RTL websites.
Edit:
As a workaround, I modified the library as follows:
I added
$('<div style="direction:ltr;text-align:left;"><div id="awesomecloud-text-marker"></div></div>').prependTo($('body'));
Then replaced all instances of
$('body')
with$('#awesomecloud-text-marker');
inside the library itself, and it works, now.The text was updated successfully, but these errors were encountered: