ckeditor5
ckeditor5 copied to clipboard
Alignment of table cell is reversed for RTL (the 'right' button aligns left and the 'left' aligns right)
📝 Provide detailed reproduction steps (if any)
- create table
- change text alignment at cell properties from right to left
✔️ Expected result
text will be aligned left
❌ Actual result
text aligns right
(same if I chose right text will align left)
❓ Possible solution
on tablecellpropertiesview,js remove this code: nameToValue: name => { if ( isContentRTL ) { if ( name === 'left' ) { return 'right'; } else if ( name === 'right' ) { return 'left'; } } return name; },
this code is not needed when the page is already RTL. It does the exact opposite.
- give default value to horizontalAlignment to right
📃 Other details
- Browser: …
- OS: …
- First affected CKEditor version: …
- Installed CKEditor plugins: …
If you'd like to see this fixed sooner, add a 👍 reaction to this post.