Click on any text block, then press the text direction button on the toolbar.
<!DOCTYPE html>
<html>
<head>
<title>Redactor</title>
<meta charset="utf-8">
<!-- css -->
<link rel="stylesheet" href="/your-folder/redactor.css" />
</head>
<body>
<!-- element -->
<textarea id="entry">...</textarea>
<!-- js -->
<script src="/your-folder/redactor.js"></script>
<script src="/your-folder/plugins/textdirection/textdirection.js"></script>
<!-- call -->
<script>
Redactor('#entry', {
plugins: ['textdirection']
});
</script>
</body>
</html>
By default, the plugin only adds its button to the toolbar. To add it to the context bar, enable the context
setting:
Redactor('#entry', {
plugins: ['textdirection'],
textdirection: {
context: true
}
});