Skip to content

fix: apply RTL direction class in the page editor#8031

Open
nabaco wants to merge 2 commits into
requarks:mainfrom
nabaco:fix/editor-rtl
Open

fix: apply RTL direction class in the page editor#8031
nabaco wants to merge 2 commits into
requarks:mainfrom
nabaco:fix/editor-rtl

Conversation

@nabaco

@nabaco nabaco commented Jun 17, 2026

Copy link
Copy Markdown

TL;DR: Hebrew (RTL) text in the visual editor didn't play well with bullet lists/todo lists.

The reader view (themes/default/components/page.vue) sets is-rtl/is-ltr on the root v-app from $vuetify.rtl, so all .is-rtl content styles apply to rendered pages. The editor's root v-app (components/editor.vue) was missing this class, so for RTL the CKEditor "Visual" editor rendered content left-to-right, so list bullets stayed on the left. I copied the reader's binding so the editor inherits the same .is-rtl content rules.

Screenshot_2026-06-17_17-27-52

The content list-bullet rule (themes/default/scss/app.scss) draws a custom ::before bullet on ul and excludes .contains-task-list (markdown task lists, where the checkbox is the marker). The CKEditor "Visual" editor emits task lists with class .todo-list, which was not excluded, so the bullet rendered in the task-list checkbox - in both the editor and the saved/rendered output. Exclude .todo-list as well.

image

Result:
image

Nachum Barcohen added 2 commits June 17, 2026 23:02
The reader view (themes/default/components/page.vue) sets `is-rtl`/`is-ltr` on
the root `v-app` from `$vuetify.rtl`, so all `.is-rtl` content styles apply to
rendered pages. The editor's root `v-app` (components/editor.vue) was missing
this class, so for RTL the CKEditor "Visual" editor rendered content
left-to-right, so list bullets stayed on the left. I copied the reader's
binding so the editor inherits the same `.is-rtl` content rules.
The content list-bullet rule (themes/default/scss/app.scss) draws a custom
`::before` bullet on `ul` and excludes `.contains-task-list` (markdown task
lists, where the checkbox is the marker). The CKEditor "Visual" editor emits
task lists with class `.todo-list`, which was not excluded, so the bullet
rendered in the task-list checkbox - in both the editor and the saved/rendered
output. Exclude `.todo-list` as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant