Text Direction
This feature enables text direction controls within the text editor, allowing users to switch between left-to-right (LTR) and right-to-left (RTL) text directions.
Enable or Disable
By default, the text direction feature is disabled. You can enable or disable the text direction controls using the unlayer.init()
method within the textEditor configuration.
unlayer.init({
features: {
textEditor: {
textDirection: true, // Enable text direction controls
},
},
});