CMS - Add support to RTL for the editor/designer rich-text/text feilds

For now - now way to change the direction of the text (Beside manually every time to control+A(select all) and==> click "shift" + right ctrl). 

For RTL sites this is really tidy for clients.

How to? By extra button and "set as deafult" somehow (or under site setting). 

 

Thanks

Image result for rtl paragraph direction

Activate RTL WordPress

Image Source: geralt – Pixabay.com / License: CC0 Public Domain
  • Ezra Siton
  • Jan 26 2019
  • Reviewed
  • Davor Egyed commented
    August 07, 2023 14:13

    Note - The correct approach as per W3C web standard, is to add the rtl attribute to the root HTML element programmatically with JS. Which looks like this:

    <style>

    :root {

    direction: rtl;

    }

    </style>

    <script>

    document.documentElement.setAttribute('dir', 'rtl');

    document.querySelector('.css_direction').remove();

    // The following code adds the "lang"-attribute to the root HTML element.

    // If you're using the Folder strategy, activate the code below by removing ' /* '

    /* document.documentElement.setAttribute("lang", 'ar');

    </script>


    It's included with the Webflow building system RTLflow: https://derokki.dev/rtlflow

    Webflow is an HTML-CSS development builder, therefore it always supports RTL when used correctly. I'd agree there could be some improvement to the CMS, though. That might be solvable by creating an extension.

  • Ben Rose commented
    July 30, 2020 18:52

    Please Please!

  • Ben Rose commented
    July 30, 2020 18:51

    Please Please!!1

  • +8