# RTL languages cause problems with link entry dialog

**URL:** https://meta.discourse.org/t/rtl-languages-cause-problems-with-link-entry-dialog/35762
**Category:** Bug
**Created:** [2015年十一月18日 18:15 UTC](https://meta.discourse.org/t/rtl-languages-cause-problems-with-link-entry-dialog/35762 "2015-11-18T18:15:47Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Aymane\_Shuichi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aymane_shuichi/32/63024_2.png) [@Aymane\_Shuichi](https://meta.discourse.org/u/Aymane_Shuichi)
#### Post date: [2015年十一月18日 18:15 UTC](https://meta.discourse.org/t/rtl-languages-cause-problems-with-link-entry-dialog/35762/1 "2015-11-18T18:15:47Z")

</div>

I can’t enter links. I only see the black overlay, no modal though. Anyone having the same issues as me ?

 ![](https://global.discourse-cdn.com/meta/original/3X/d/d/ddba2f95fd25ef0e0d5eb5c43b783b67a7a6b564.png)

---

<div class="post-metadata">

### Author: ![Aymane\_Shuichi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aymane_shuichi/32/63024_2.png) [@Aymane\_Shuichi](https://meta.discourse.org/u/Aymane_Shuichi)
#### Post date: [2015年十一月18日 18:16 UTC](https://meta.discourse.org/t/rtl-languages-cause-problems-with-link-entry-dialog/35762/2 "2015-11-18T18:16:08Z")

</div>

It works fine with en locale

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2015年十一月18日 18:40 UTC](https://meta.discourse.org/t/rtl-languages-cause-problems-with-link-entry-dialog/35762/3 "2015-11-18T18:40:52Z")

</div>

Yes that will be a problem for all RTL layouts.

The problem is that the left position of the insert-link modal is hard-coded into the html. Anytime left or right positioning is set with inline styles it will break for rtl layouts unless a check is made in the code to see if the current layout is rtl and the left/right values are flipped.

---

<div class="post-metadata">

### Author: ![Aymane\_Shuichi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aymane_shuichi/32/63024_2.png) [@Aymane\_Shuichi](https://meta.discourse.org/u/Aymane_Shuichi)
#### Post date: [2015年十一月18日 18:43 UTC](https://meta.discourse.org/t/rtl-languages-cause-problems-with-link-entry-dialog/35762/4 "2015-11-18T18:43:16Z")

</div>

Sure, Can you give me the element that gets the inline property ? I’ll change it with Jquery from admin as a temporary solution

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2015年十一月18日 19:09 UTC](https://meta.discourse.org/t/rtl-languages-cause-problems-with-link-entry-dialog/35762/5 "2015-11-18T19:09:24Z")

</div>

it is `.rtl .d-editor .d-editor-modal.insert-link[style]`

You can get in on the screen, but not centered, with this as custom css:

```css
.rtl .d-editor .d-editor-modal.insert-link[style] {
    left: auto !important;
    right: 50px;
}

```

---

<div class="post-metadata">

### Author: ![Aymane\_Shuichi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aymane_shuichi/32/63024_2.png) [@Aymane\_Shuichi](https://meta.discourse.org/u/Aymane_Shuichi)
#### Post date: [2015年十一月18日 19:16 UTC](https://meta.discourse.org/t/rtl-languages-cause-problems-with-link-entry-dialog/35762/6 "2015-11-18T19:16:30Z")

</div>

Fair enough. It works ! Thanks

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2015年十一月19日 22:06 UTC](https://meta.discourse.org/t/rtl-languages-cause-problems-with-link-entry-dialog/35762/7 "2015-11-19T22:06:27Z")

</div>

This is fixed now on the latest master branch.

 ![](https://global.discourse-cdn.com/meta/original/3X/6/9/69fd0db9000a9015e71c4c6606fbcc58d190e054.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2015年十一月19日 22:25 UTC](https://meta.discourse.org/t/rtl-languages-cause-problems-with-link-entry-dialog/35762/8 "2015-11-19T22:25:41Z")

</div>


