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

Wiki: HTML tags added using HTML editor are removed

XMLWordPrintable

    • MOODLE_311_STABLE
    • MDL-76664-401
    • MDL-76664-master
    • Hide
      • In Administration > Security > Site security settings, check enabletrusttext (Enable trusted content)
      • In a new course, add a new Wiki W1 activity.
      • Add a new page in the Wiki W1
      • In the editor, got to source code  (View/Source code) and paste the following:

       

      <!-- Using the iframe tag to embed a YouTube video --> <iframe width="1280" height="720" src="https://www.youtube.com/embed/7N0rv9bEewY" title="How can new users access my Moodle site?" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> <!-- Using the embed tag to display a PDF file -->
      <embed src="https://moodle.univ-tln.fr/pluginfile.php/113668/mod_resource/content/5/01_Moodle-premier-pas.pdf" type="application/pdf" width="600" height="400">
      <!-- Using the figure tag to display an image with a caption -->
      <figure>
          <img src="https://docs.moodle.org/402/en/images_en/1/17/Boost40.png" alt="Sample Image">
          <figcaption>This is a caption for the sample image.</figcaption>
      </figure>
      

      • View the page
      • You should see at least the image and the iframe
      • Go back in editing mode and view source
      • Ensure that the 3 elements (iframe, embed and figure) are still there

       

       

       

      Show
      In Administration > Security > Site security settings, check enabletrusttext (Enable trusted content) In a new course, add a new Wiki W1 activity. Add a new page in the Wiki W1 In the editor, got to source code  (View/Source code) and paste the following:   <!-- Using the iframe tag to embed a YouTube video --> <iframe width="1280" height="720" src="https://www.youtube.com/embed/7N0rv9bEewY" title="How can new users access my Moodle site?" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> <!-- Using the embed tag to display a PDF file --> <embed src="https://moodle.univ-tln.fr/pluginfile.php/113668/mod_resource/content/5/01_Moodle-premier-pas.pdf" type="application/pdf" width="600" height="400"> <!-- Using the figure tag to display an image with a caption --> <figure>     <img src="https://docs.moodle.org/402/en/images_en/1/17/Boost40.png" alt="Sample Image">     <figcaption>This is a caption for the sample image.</figcaption> </figure> View the page You should see at least the image and the iframe Go back in editing mode and view source Ensure that the 3 elements (iframe, embed and figure) are still there      
    • 3
    • HQ 2023 Planning i4 Moppies

      Some of the HTML tags (iframe, embed, figure, ...) are removed in a wiki after saving a page using the HTML Editor. With the same editor in normal resource "label" everything is working.

      Somebody already postet it in the forum but without an answer: https://moodle.org/mod/forum/discuss.php?d=431623

      We use Moodle 3.11.11, Classic Theme and Atto Editor.

       

        1. image-2023-10-04-08-19-06-169.png
          49 kB
          Laurent David
        2. image-2023-10-04-08-20-35-826.png
          40 kB
          Laurent David
        3. MDL-76664_permissions1.png
          35 kB
          Mikel Martín Corrales
        4. MDL-76664_permissions2.png
          33 kB
          Mikel Martín Corrales

            laurent.david@moodle.com Laurent David
            girl0000 Lisa Eckerstorfer
            Mikel Martín Corrales Mikel Martín Corrales
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 3 hours, 30 minutes
                1d 3h 30m

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