Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-40520

Start HTML Editor (TinyMCE) with directionality‎ and alignment set according to system language (LTR/RTL mode)

XMLWordPrintable

    • MOODLE_25_STABLE
    • MDL-40520_master
    • Hide

      Immediately after TinyMCE starts, user should click LTR/RTL paragraph flow (directionality) button and also LEFT/RIGHT alignment button too, before starting to input any new text.

      Show
      Immediately after TinyMCE starts, user should click LTR/RTL paragraph flow (directionality) button and also LEFT/RIGHT alignment button too, before starting to input any new text.
    • Hide
      1. Set current course to RTL (set language to hebrew)
      2. Open any activity with a TinyMCE editor (a Forum post)
      3. Make sure LTR/RTL paragraph flow (directionality) button and also LEFT/RIGHT alignment button are clicked with the proper directionality and alignment according to the current selected course language.
      4. Input some text and switch to HTML mode to see that the proper directionality and text alignment attribute are set into the HTML tags
      5. Publish the post (If in a Forum) and check the incoming email for proper alignment of the email's content
      6. Set current course to LTR (set language to English)
      7. Start the test all over again
      Show
      Set current course to RTL (set language to hebrew) Open any activity with a TinyMCE editor (a Forum post) Make sure LTR/RTL paragraph flow (directionality) button and also LEFT/RIGHT alignment button are clicked with the proper directionality and alignment according to the current selected course language. Input some text and switch to HTML mode to see that the proper directionality and text alignment attribute are set into the HTML tags Publish the post (If in a Forum) and check the incoming email for proper alignment of the email's content Set current course to LTR (set language to English) Start the test all over again

      TinyMCE (HTML Editor) initiates without any consideration related to user's language setting in current context (Course/System) and since the theme's directionality‎ (LTR or RTL) is overlaid onto the editor, it seems to the user that the text he/she input into the editor is properly aligned and it's paragraph directionality‎ flow is properly set. But actually this is not true since the text is saved into Moodle's DB without any HTML alignment and directionality‎ properties.

      And then, in many cases, it is send by email (From Forums and Assignments) to the users (mostly RTL users) with very hard to read left aligned text.

      I suggest initiating TinyMCE according to user's current_language().

            nadavkav Nadav Kavalerchik
            nadavkav Nadav Kavalerchik
            Jason Fowler Jason Fowler
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.