-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTL support #1151
Comments
Please add support for RTL, setting direction based on "strong RTL" characters during input. |
Please consider adding (dir="auto") to auto set the default direction based on the first detectable charachter |
We're switching to CKEditor 4 until implementation of this feature. |
We just back to use CKEditor 4 until supporting RTL in CKEditor 5 |
Any news about time to support RTL? |
Thanks for your great editor, we wait for RTL support to upgrade CKEditor 4 to CKEditor 5 version. |
Any news about RTL? |
@oleq research this topic and will share his findings here. We expect to have the most important issues solved until the end of June, but the first improvements should land sooner than that. |
Just FYI: I updated the "Plan" section of the first comment with a rough roadmap and listed steps to make the editor RTL–friendly. Please let me know in the comment if there's anything I forgot to mention but should land in the MVP. |
📰 Just an update to all of us following this issue: unfortunately we won't be able to ship this feature in the upcoming iteration. This is a priority issue for us, and we'd like to have it as soon as possible, but the scope of this issue is quite big, as shown in the research. Also it requires more testing. Currently we don't have the required man power to complete this feature. It's not an official ETA but we should resume the works in June so given the complexity we can expect it to be available somewhere in July. That's just a rough estimation, we'll be updating this issue as we know more. |
I wrote the plugin for BiDi |
Thanks, I'll check it and let you know |
@AHasanin Since [email protected] we officially support RTL content and that includes the alignment feature. Update your editor and give it a try! |
Hey @oleq, what about BiDi plugin which introduced by @abedi-ir? |
You can use it if it works for you (I haven't seen it yet, though) but keep in mind we don't provide support for 3rd–party plugins. BiDi is on our TODO list so one day it's gonna be a core editor feature. Unfortunately, I can't share any strong ETA with you. |
😢 |
any updates on this? |
Its 2022, is this done yet? I'm amazed how editor like CK which is loaded with features lacks in RTL support! |
What about direction - bidi - in the same editor. The text in the editor must be LTR or RTL but not both if I need to use languages from both directions in the same editor. |
As mentioned in one of the previous comments:
|
10/ 10/ 2022 I don't want to change the whole language of the content or the UI to just let the end user write in RTL??!.. |
Still waiting. |
@movahhedi could you share for which improvement are you waiting? |
@Witoso, I'm sure he means the same that all are asking for a while: the BIDI directions. It's inefficient to be stuck in one direction, especially with us who need to write in the two directions in the same article. |
Doesn't Text part language solve this problem? |
No, it didn't. What we are talking about is the traditional paragraph redirection RTL/LTR. So, in one paragraph, we press the LTR button and start writing one of the LTR languages, e.g. English. In another paragraph, we press the RTL button and write in one of the RTL languages, e.g. Arabic. |
Ok, gotcha! So it's a bit more generic than text part languages. They also allow you to do this, but with the selection of language, not paragraph direction. This is the ticket in which the improvement is tracked: #2008. If someone haven't, please +1 it to bump it in our priorities. |
Of course, it's more efficient than the text part. Instead of adding many languages written from LTR, we need to hit the LTR button and the same for the RTL languages. |
Any updates on this? |
Is this a bug report or feature request? (choose one)
🆕 Feature request
📃 Other details that might be useful
RTL support is a quite wide topic. We need to consider the UI of the editor as well as the editing features.
If you'd like the editor to better support RTL environments (such as Arabic, Hebrew and Persian) please add 👍. You can also comment what's a minimum viable state for you (i.e. what do you expect working first).
Plan
MVP
Basic changes to editor configuration
config.language = 'ar'
will change thedir
attribute of the editable.contentLanguage
configuration like in CKEditor 4 is needed.lang
anddir
attributes of the editable regardless of the editor UI language ☝. For instance, allows writing english text with an Arabic UI and vice–versa. Affects screen readers, spell checkers, font selection, etc..Changes to the editing layer
dir
attribute support on thecontenteditable
element.auto
by default leaving the decision up to the UA, which sets the text direction based on the first character with a strong directionality,UI layer
Core changes
Locale
which is propagated to all UI components..ck-rtl
CSS class when necessary..ck-rtl .ck.ck-button { ... }
Changes in UI components
InputView
ToolbarView
.direction: rtl
)Accessibility
Beyond MVP
Changes in UI components
Accessibility
BiDi
dir="..."
of the editable), which helps editing mixed content and saving it to the database. It obsoletes the CKEditor 4 BiDi plugin.Related tickets
The text was updated successfully, but these errors were encountered: