WYSIWYG Text direction & Alignment controls can fail when set in nested structures #4463

Closed
opened 2026-02-05 08:56:42 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @ssddanbrown on GitHub (Feb 14, 2024).

Specifically in tables where there may be subformatting.
Especially when copied in from other apps like word which may bring more complex content structures.

Probably best if, on text direction or alignment control usage, we traverse to closest block element to apply it, then remove all alignment/direction (attribute and styles) of all child elements, to keep these block-level.

Additionally, text direction controls don't currently apply during multi-table cell selections, only the first.

Originally created by @ssddanbrown on GitHub (Feb 14, 2024). Specifically in tables where there may be subformatting. Especially when copied in from other apps like word which may bring more complex content structures. Probably best if, on text direction or alignment control usage, we traverse to closest block element to apply it, then remove all alignment/direction (attribute and styles) of all child elements, to keep these block-level. Additionally, text direction controls don't currently apply during multi-table cell selections, only the first.
OVERLORD added the 🐛 Bug📝 WYSIWYG Editor💻 Front-End labels 2026-02-05 08:56:42 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Feb 20, 2024):

Addressed in c290d01adb.
Probably not perfect, but now combined with the better clear formatting controls, this should provide the user much more control, or ways to clean & gain control.

@ssddanbrown commented on GitHub (Feb 20, 2024): Addressed in c290d01adbbdeeb68c4b0d791fe919a02432d457. Probably not perfect, but now combined with the better clear formatting controls, this should provide the user much more control, or ways to clean & gain control.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4463