-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
RTL support #1151
Copy link
Copy link
Closed
Labels
domain:accessibilityThis issue reports an accessibility problem.This issue reports an accessibility problem.type:featureThis issue reports a feature request (an idea for a new functionality or a missing option).This issue reports a feature request (an idea for a new functionality or a missing option).
Milestone
Metadata
Metadata
Assignees
Labels
domain:accessibilityThis issue reports an accessibility problem.This issue reports an accessibility problem.type:featureThis issue reports a feature request (an idea for a new functionality or a missing option).This issue reports a feature request (an idea for a new functionality or a missing option).
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 thedirattribute of the editable.contentLanguageconfiguration like in CKEditor 4 is needed.langanddirattributes 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
dirattribute support on thecontenteditableelement.autoby 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
Localewhich is propagated to all UI components..ck-rtlCSS class when necessary..ck-rtl .ck.ck-button { ... }Changes in UI components
InputViewToolbarView.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