Backend support for paragraph direction (pPr.rightToLeft, <w:bidi> round-trip, Document API format.paragraph.setDirection) already exists. The toolbar and editor don't expose it.
Add:
setParagraphDirection / clearParagraphDirection PM commands on the paragraph extension (multi-paragraph, single transaction, optional alignmentPolicy: "matchDirection" to flip left↔right justification).
- Two default toolbar buttons (
directionLtr, directionRtl) with active state reflecting the current paragraph.
- Vitest coverage.
Open question: keymap. Mod-Shift-L/R is already alignment. Suggest Mod-Alt-Shift-L/R.
Backend support for paragraph direction (
pPr.rightToLeft,<w:bidi>round-trip, Document APIformat.paragraph.setDirection) already exists. The toolbar and editor don't expose it.Add:
setParagraphDirection/clearParagraphDirectionPM commands on the paragraph extension (multi-paragraph, single transaction, optionalalignmentPolicy: "matchDirection"to flipleft↔rightjustification).directionLtr,directionRtl) with active state reflecting the current paragraph.Open question: keymap.
Mod-Shift-L/Ris already alignment. SuggestMod-Alt-Shift-L/R.