djangotinymce-pluginsdjango-tinymce

How to change rtl direction to ltr in codesample plugin of tinymce


My Django-TinyMCE direction has turned rtl due to my language and everything looks fine except the codesample plugin which has gotten rtl and scrambles the code. I would appreciate anyone help me figure this out. I want code sample to be ltr while everything else is rtl.

Thanks in advance

images ...

rtl text editor I want rtl to ltr


Solution

  • I solved this problem with this style in head of my html code:

        .tox .tox-form__group--stretched .tox-textarea {
            flex: 1;
            text-align: left;
            direction: ltr !important;
            -ms-flex-preferred-size: auto;
        }