Support » Plugin: Code Snippets » CSS fix for RTL sites

  • Resolved hagaij

    (@hagaij)


    Hey,
    Sorry for not forking/updating using github, I don’t really know my way around it :-\

    I’m using an RTL wordpress installation, which means that by default the code within the editor is also aligned to the right and you can’t really read or do anything link that.

    In order to fix this I modified the .CodeMirror-code class within the cssmirror.css file as follows.
    {
    outline: none;
    direction: ltr;
    text-align: left;
    }

    This resolved the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Thank you for letting me know about this. I don’t use an RTL language, so it’s good to know how the plugin works for someone who does.

    Thank you for providing the code sample, and don’t worry about not using GitHub – it’s fairly easy for me to just include it in the code base. I’ll include it in the next release of the plugin.

    And please let me know if there are any other changes I can make to make using the plugin better for RTL users.

    Plugin Author Shea Bunge

    (@bungeshea)

    This will be fixed in version 1.8.1.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS fix for RTL sites’ is closed to new replies.