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

Media files in glossary entries and wiki are not left-aligned

    XMLWordPrintable

Details

    • Bug
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • 3.4.1, 3.4.2
    • None
    • Glossary, Wiki (2.x)
    • MOODLE_34_STABLE
    • MDL-61648-master
    • Hide

      Test in Boost and Clean.

      Setup

      1. Log in as Admin.
      2. Purge all caches.
      3. Create a Course.
      4. Create a Wiki activity in the Course.
        1. Fill the mandatory fields. 
        2. Insert a media link (ex. https://youtu.be/3ORsUGVNxGs) in the 'Description' field by pressing the 'Insert or edit an audio/video file' icon and adding the link into the 'Source URL' field.
        3. Click 'Save and display'.
      5. Choose the format of the Wiki page (ex. 'HTML format') and create the page. 
      6. Go back to the Course.
      7. Create a Glossary activity into the Course.
        • After filling the mandatory fields click 'Save and display'.
      8. Add a new entry in the Glossary.
        • Fill the mandatory fields. 
        • Insert a media link (ex. https://youtu.be/3ORsUGVNxGs) in the 'Description' field by pressing the 'Insert or edit an audio/video file' icon and adding the link into the 'Source URL' field.
        • Click 'Save changes'.
      9. Access to "Site administration ► Plugins ► Media players ► Manage media players" and make sure that  "VideoJS player " is enabled.

      Testing scenario 1

      1. View the Wiki page.
        • make sure the media item is left-aligned and not centred.
      2. View the Glossary entry.
        • make sure the media item is left-aligned and not centred.

      Testing scenario 2

      1. Access to "Site administration ► Plugins ► Media players ► Manage media players, disable "VideoJS player " and make sure that "YouTube" is enabled.
      2. View the Wiki page.
        • make sure the media player is different from the previous scenario.
        • make sure the media item is left-aligned and not centred.
      3. View the Glossary entry.
        • make sure the media player is different from the previous scenario.**
        • make sure the media item is left-aligned and not centred.

       

      Show
      Test in Boost and Clean. Setup Log in as Admin. Purge all caches. Create a Course. Create a Wiki activity in the Course. Fill the mandatory fields.  Insert a media link (ex. https://youtu.be/3ORsUGVNxGs ) in the 'Description' field by pressing the 'Insert or edit an audio/video file' icon and adding the link into the 'Source URL' field. Click 'Save and display'. Choose the format of the Wiki page (ex. 'HTML format') and create the page.  Go back to the Course. Create a Glossary activity into the Course. After filling the mandatory fields click 'Save and display'. Add a new entry in the Glossary. Fill the mandatory fields.  Insert a media link (ex.  https://youtu.be/3ORsUGVNxGs ) in the 'Description' field by pressing the 'Insert or edit an audio/video file' icon and adding the link into the 'Source URL' field. Click 'Save changes'. Access to "Site administration ► Plugins ► Media players ► Manage media players" and make sure that  "VideoJS player " is enabled. Testing scenario 1 View the Wiki page. make sure the media item is left-aligned and not centred. View the Glossary entry. make sure the media item is left-aligned and not centred. Testing scenario 2 Access to "Site administration ► Plugins ► Media players ► Manage media players, disable "VideoJS player " and make sure that "YouTube" is enabled. View the Wiki page. make sure the media player is different from the previous scenario. make sure the media item is left-aligned and not centred. View the Glossary entry. make sure the media player is different from the previous scenario. ** make sure the media item is left-aligned and not centred.  

    Description

      As reported by Patrick Schmid in a moodle.org thread Glossary Video issue, if you include a video in a glossary entry, you can't make it left-aligned.

      I tried on the Moodle sandbox demo site and found that the video was centred, but with lots of white space on either side, so you had to scroll a long way to reach the edit and delete links.

      Steps to reproduce:

      1. Create a glossary activity.
      2. Add a video e.g. https://youtu.be/3ORsUGVNxGs

      Expected result: The video is left-aligned (as for an image).

      Actual result: The video is centred, with lots of white space either side (as shown in the attached screenshot).

      The problem is the same whether Boost or Clean is used.

      Edited to add: Wiki is similarly affected. (See attached screenshot kindly provided by Patrick.)

      Attachments

        Activity

          People

            Geshoski Mihail Geshoski
            tsala Helen Foster
            David Monllaó David Monllaó
            Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
            Votes:
            20 Vote for this issue
            Watchers:
            19 Start watching this issue

            Dates

              Created:
              Updated: