Skip to main content

Moodle: Paste HTML

Updated over 7 months ago

Purpose

This article describes the process of pasting HTML code into Moodle textbox.

Procedure

Follow this process if you need to paste HTML code you’ve copied from an external HTML source, or HTML from a Moodle textbox. This will minimize the possibility of errors on the course page.

The example demonstrates the process of copying HTML from one Moodle activity textbox to another, however, the same process is used for copy/paste of HTML code from any source.

  • Click on the activity you want to work with and navigate to the Settings tab.

  • Click the HTML icon </>

HTML button in the text editor.

You’ll see that the view of your text has now changed to show the HTML code that generates the appearance of font size, type, color, etc. of the text in your activities and Moodle course.

  • Select all of the contents in the box and copy to the clipboard (Use CTRL + C, or the right mouse button click and choose Copy from the dropdown menu).

You can now close this screen by clicking the Save or Cancel button at the bottom of the page, or by clicking back to your course homepage.

Now add this code to another activity.

  • Locate the activity textbox that you want to paste this copied HTML into.

  • Do not paste the copied code until you have clicked on the HTML icon.

HTML Button in the text Editor
  • Paste your code and then click on the HTML icon again to turn it off.

    The pasted contents should now appear as you expected - As text with the formatting applied, such as bold, size differences, colors, etc.

Scroll to the bottom of the page to save your changes.

Contact us at cochiseonline@cochise.edu if you experience difficulties.

Did this answer your question?