Problem/Motivation
When editing a node with ckeditor bidi button set to RTL, the RTL gets unset only for the first paragraph.
Steps to reproduce
- On a fresh D10 site, install and enable the latest ckeditor_bidi module (as of now that would be 4.x)
- Go to edit the text formats / editors at [site.domain]/admin/config/content/formats
- Add the "BiDi" button to the editor toolbar
- On the plugin configuration, set the "RTL" option to be the Default
- Go create a new node
- Add more than one paragraph
- Make sure all paragraphs have their "dir" set to RTL
- Save changes
- Viewing the node, see how all the paragraphs have the correct "dir"
- Go edit that same node
- Note how the first paragraph has lost the RTL dir, while the others still have it
If you make any change to the node, and save it, the first paragraph (that previously had <p dir="rtl">) will lose the direction
Remaining tasks
Add tests?
Attaching here a screencast showing the bug.
| Comment | File | Size | Author |
|---|---|---|---|
| bidi4_ckeditor5_edit_issues.mp4 | 4.82 MB | anairamzap |
Issue fork ckeditor_bidi-3346808
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rajab natshahFacing the same issue
In RTL I can not switch a paragraph to LTR
Comment #5
smustgrave commentedCkeditor5 is not my strongest but give this a shot.
Comment #7
smustgrave commentedFrom my testing believe this has been fixed.