Sorav Garg
Sorav Garg

Reputation: 1067

arabic tinymce doesn`t working

i have downloaded arabic language package and editor show in arabic format but when i right some its not write with right direction its always start with left direction and arabic language always start with right direction but this is not working..

my code --

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<script type="text/javascript" src="/tiny/tinymce/js/tinymce/tinymce.min.js"></script>
<body>
<textarea name="name"></textarea>
</body>
</html>

<script type="text/javascript">
       tinymce.init({
            language : "ar_SA", // arabic
            mode : "textareas",
            selector: "textarea",
            theme: "modern",
    });
</script>

Upvotes: 2

Views: 363

Answers (1)

Ɛɔıs3
Ɛɔıs3

Reputation: 7851

According to the documentation, you may do that :

tinymce.init({
    // ...
    directionality : 'rtl', // Right To Left
    // ...
});

Upvotes: 1

Related Questions