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.
any update? probably the icons has to swap of right left and it will look in ui well but it also will cause mirror that in left side willbe align to right
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.
We've closed your issue due to inactivity. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).