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
Trix uses Chome's dirname and FormData API to determine text direction and wrap the content in a dir="rtl" element. Chrome recently changed the behaviour, and the dirname on input doesn't set the direction on the containing form. This results in the RTL text to align left. Here's a minimal example that demonstrates the breaking change.
Steps to Reproduce
Use Chrome v113.0.5672.92
Use any RTL language keyboard (Arabic, for example) and input text in the editor.
The text's wrapper div element doesn't have dir="rtl", and the text is aligned left instead of right.
Details
Trix version: 2.0.4
Browser name and version: Chrome 113.0.5672.92
Operating system: macOS 13.2.1
The text was updated successfully, but these errors were encountered:
Trix uses Chome's
dirname
andFormData
API to determine text direction and wrap the content in adir="rtl"
element. Chrome recently changed the behaviour, and thedirname
oninput
doesn't set the direction on the containingform
. This results in the RTL text to align left. Here's a minimal example that demonstrates the breaking change.Steps to Reproduce
div
element doesn't havedir="rtl"
, and the text is aligned left instead of right.Details
The text was updated successfully, but these errors were encountered: