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

Never convert URLs that are linked

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.5
    • Fix Version/s: None
    • Component/s: Filters
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      Automatic conversion of URLS into an image or video is a very nice feature.

      However, there are times when one doesn't want a particular video to be converted.

      Having to go into the code to add class=nolink is a hidden feature and therefore not a good solution for most people.

      What is a more natural solution is to never, ever convert linked urls. If a user selects some text in the editor and links it to a URL:

      <a href="https://www.youtube.com/watch?v=bCS-H1uYfT8">Watch this video for the next class</a>

      I can't think of a reason why that text should be replaced by an embedded video; clearly the user wants that text to be displayed and the audience to follow the link.

      Sometimes people actually want the url to be displayed, also:

      <a href="https://www.youtube.com/watch?v=bCS-H1uYfT8">https://www.youtube.com/watch?v=bCS-H1uYfT8</a>

      (For example in a list of references.) But Moodle converts this into two videos!

      This is the current behavior in 3.5. I hope it's changed in newer versions.

      Thanks,

      — Andy

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              andyanderson Andy Anderson
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: