Skip to main content

Directionality

Plugin alias: directionality

editor42.init({
plugins: 'directionality'
});

Adds controls to set the text direction of block-level elements to either left-to-right (LTR) or right-to-left (RTL). Handles list items specially by applying direction to the parent list element. Uses both the dir HTML attribute and inline CSS direction style as a fallback.

Commands

CommandDescription
editor42DirectionLTRSets direction to LTR.
editor42DirectionRTLSets direction to RTL.

Toolbar buttons

NameTypeDescription
ltrToggle buttonActive when current block direction is LTR.
rtlToggle buttonActive when current block direction is RTL.