ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Alignment of table cell is reversed for RTL (the 'right' button aligns left and the 'left' aligns right)

Open kuku711 opened this issue 4 years ago • 3 comments

📝 Provide detailed reproduction steps (if any)

  1. create table
  2. 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.

kuku711 avatar Nov 16 '21 13:11 kuku711

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

kuku711 avatar Mar 28 '22 08:03 kuku711

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.

CKEditorBot avatar Sep 29 '23 05:09 CKEditorBot

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.

CKEditorBot avatar Oct 17 '24 23:10 CKEditorBot

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).

CKEditorBot avatar Nov 17 '24 23:11 CKEditorBot