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 3 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