Skip to content

Doesn't work in RTL #25

@EliezerB123

Description

@EliezerB123

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions