This is a test site. Any changes will be lost!

HTML editor: Difference between revisions

From MoodleDocs
(→‎HTML editor toolbar features: Move TOC so tool bar shows first)
(→‎Shortcut keys: 2 columns, caution different operating and browswer use)
Line 42: Line 42:


===Shortcut keys===
===Shortcut keys===
Here are some common editing short cut or hot keys.
Here are some common editing short cut or hot keys. Different operating systems and browsers may not support all these keys.  The most universal hot keys are in''' bold'''.
{|  border="0" cellpadding="2" cellspacing="0" style="text-align:left"
! width="70"|Keys
! width="300"|Action
! width="10"|
! width="70"|Keys
! width="300"|Action


{| class="wikitable" style="text-align:left"
|-
|-
! Keys
| '''Ctrl-C'''
! Action
|-
| Ctrl-C
| Copy   
| Copy   
 
|
|-
| '''Ctrl-V'''
| Ctrl-V
| Paste
| Paste


|-
|-
| Ctrl-X
| '''Ctrl-X'''
| Cut
| Cut
 
|
|-
| '''Ctrl-F'''
| Ctrl-P
| Find text
| Change the font size


|-
|-
| Ctrl-H
| Ctrl-H
| Change text format (headings etc.)
| Find and replace
|
| *
| *


|-
|-
| Ctrl-1
| '''Ctrl-Z'''
| to Ctrl-6 Change heading level
| Undo
|
| '''Ctrl-Y'''
| Redo


|-
|-
| Ctrl-B
| '''Ctrl-B'''
| Make text bold  
| Make text bold  
 
|
|-
| '''Ctrl-I'''
| Ctrl-I
| Make text italic  
| Make text italic  


|-
|-
| Ctrl-U
| '''Ctrl-U'''
| Underline text  
| Underline text  
|
| '''Ctrl-S'''
| Strikethrough text


|-
|-
| Ctrl-S
| Ctrl-H
| Strikethrough text  
| Change text format (headings etc.)
|
| Ctrl-1
| to Ctrl-6 Change heading level


|-
|-
| Ctrl-,
| Ctrl-,
| Subscript  
| Subscript  
 
|
|-
| Ctrl-.
| Ctrl-.
| Superscript  
| Superscript  
Line 99: Line 109:
| Ctrl-O
| Ctrl-O
| Change the font  
| Change the font  
 
|
|-
| Ctrl-0
| Ctrl-0
| Clean Word HTML  
| Clean Word HTML  
|-
| Ctrl-Z
| Undo
|-
| Ctrl-Y
| Redo


|-
|-
| Ctrl-L
| Ctrl-L
| Justify left  
| Justify left  
 
|
|-
| Ctrl-E
| Ctrl-E
| Center  
| Center  
Line 123: Line 123:
| Ctrl-J
| Ctrl-J
| Justify full  
| Justify full  
 
|
|-
| Ctrl-/
| Ctrl-/
| Text runs left to right  
| Text runs left to right  
Line 131: Line 130:
| Ctrl-<nowiki>|</nowiki>
| Ctrl-<nowiki>|</nowiki>
| Text runs right to left  
| Text runs right to left  
 
|
|-
| Ctrl-;
| Ctrl-;
| Decrease indent  
| Decrease indent  
Line 139: Line 137:
| Ctrl-'
| Ctrl-'
| Increase indent  
| Increase indent  
 
|
|-
| Ctrl-G
| Ctrl-G
| Change text colour  
| Change text colour  
Line 147: Line 144:
| Ctrl-K
| Ctrl-K
| Change background colour  
| Change background colour  
 
|
|-
| Ctrl-P
| Ctrl-F
| Change the font size
| Search and replace


|-
|-
| Ctrl-`
| Ctrl-`
| Switch to HTML source code view  
| Switch to HTML source code view  
 
|
|-
| Ctrl-M
| Ctrl-M
| Toggle fullscreen editor mode  
| Toggle fullscreen editor mode  
Line 163: Line 158:
| Ctrl-Alt-O
| Ctrl-Alt-O
| Insert ordered list  
| Insert ordered list  
 
|
|-
| Ctrl-Alt-U
| Ctrl-Alt-U
| Insert unordered list  
| Insert unordered list  
Line 171: Line 165:
| Ctrl-Alt-R
| Ctrl-Alt-R
| Insert horizontal rule  
| Insert horizontal rule  
 
|
|-
| Ctrl-Alt-A
| Ctrl-Alt-A
| Create anchor  
| Create anchor  
Line 179: Line 172:
| Ctrl-Alt-L
| Ctrl-Alt-L
| Create link  
| Create link  
 
|
|-
| Ctrl-Alt-D
| Ctrl-Alt-D
| Unlink  
| Unlink  
Line 187: Line 179:
| Ctrl-Alt-N
| Ctrl-Alt-N
| Turn off autolinking  
| Turn off autolinking  
 
|
|-
| Ctrl-Alt-I
| Ctrl-Alt-I
| Insert image  
| Insert image  
Line 195: Line 186:
| Ctrl-Alt-T
| Ctrl-Alt-T
| Insert table  
| Insert table  
 
|
|-
| Ctrl-Alt-S
| Ctrl-Alt-S
| Insert emoticon  
| Insert emoticon  
Line 203: Line 193:
| Ctrl-Alt-C
| Ctrl-Alt-C
| Insert special character  
| Insert special character  
 
|
|-
| Ctrl-=
| Ctrl-=
| Change text language for screen readers, or specify language for the Multilang filter
| Change text language for screen readers, or specify language for the Multilang filter

Revision as of 14:09, 29 June 2008

Moodle has developed a standard toolbar that serves as an HTML interface. This page describes some of the features of this tool. Several of the icons on the toolbar are similar to those found on many text editing programs and have similar functions.

For example, you can cut/copy and paste text from other applications into this editor and formatting will be preserved. There is the usual Ed paste.gif clipboard icon which is for pasting text that has been copied or cut. Or use the usual short cut keys of Control+C and Control+V .


HTML editor toolbar features

HTML editor toolbar in a Lesson page

Inserting images

Moodle allows you to upload pictures into a course or site folder, then insert that image into the content area. It is also possible to use an existing image located outside of your Moodle site.

You can include images in the content area by using the Ed image.gif button. This will bring up an insert picture edit screen to assist you in inserting an image. Moodle recognizes JPG, GIF and PNG as image files.

Inserting tables

  • Insert table.gif To add layout to your texts, you can use the "Insert Tables" button in the toolbar.
  • Most table editing tools are only visible if you click the Enlarge Editor button.

Enlarge editor

The Fullscreen maximize.gif button will expand the HTML editor area.

Inserting links

To make a new link,

  • type the text that you want to be a link
  • select the text
  • click the Ed link.gif link button in the toolbar
  • Type (or paste, or browse to) the URL you want to link to
  • Click OK

NOTE: This process does NOT work inside the wiki module where you need to use the Wiki link system (square brackets containing the label and the link separated by a vertical line character)

Inserting smilies (emoticons)

To embed these small icons in your text, click on the smiley icon in the toolbar. A dialog will pop up that allows you to select from the following smiley icons. (Alternatively, you can just type the corresponding code straight into your text and it will be converted later when your text is displayed).

Code editing

The Ed html.gif button changes the display window to raw HTML code. This can be useful for those of you that know how to use it (or want to learn!). Most of the buttons do not work there, not even the Search and Replace unfortunately.

Clean Word button

The clean Word Ed wordclean.gif button removes some Word formatting from your pasted text so that the page is smaller, less complex and thus loads faster. The Microsoft Office HTML Filter 2.0 removes all Word code from HTML file far more effectively. This filter is already built into office in Microsoft Office XP onwards.

Shortcut keys

Here are some common editing short cut or hot keys. Different operating systems and browsers may not support all these keys. The most universal hot keys are in bold.

Keys Action Keys Action
Ctrl-C Copy Ctrl-V Paste
Ctrl-X Cut Ctrl-F Find text
Ctrl-H Find and replace * *
Ctrl-Z Undo Ctrl-Y Redo
Ctrl-B Make text bold Ctrl-I Make text italic
Ctrl-U Underline text Ctrl-S Strikethrough text
Ctrl-H Change text format (headings etc.) Ctrl-1 to Ctrl-6 Change heading level
Ctrl-, Subscript Ctrl-. Superscript
Ctrl-O Change the font Ctrl-0 Clean Word HTML
Ctrl-L Justify left Ctrl-E Center
Ctrl-J Justify full Ctrl-/ Text runs left to right
Ctrl-| Text runs right to left Ctrl-; Decrease indent
Ctrl-' Increase indent Ctrl-G Change text colour
Ctrl-K Change background colour Ctrl-P Change the font size
Ctrl-` Switch to HTML source code view Ctrl-M Toggle fullscreen editor mode
Ctrl-Alt-O Insert ordered list Ctrl-Alt-U Insert unordered list
Ctrl-Alt-R Insert horizontal rule Ctrl-Alt-A Create anchor
Ctrl-Alt-L Create link Ctrl-Alt-D Unlink
Ctrl-Alt-N Turn off autolinking Ctrl-Alt-I Insert image
Ctrl-Alt-T Insert table Ctrl-Alt-S Insert emoticon
Ctrl-Alt-C Insert special character Ctrl-= Change text language for screen readers, or specify language for the Multilang filter

Tips and Tricks

  • Theme settings can control the default fonts in the HTML editor. It is possible to have individual themes for a context (for example, a course may have its own theme).
  • When you choose many functions a new small window will open. Unfortunately it can often open BEHIND the window you are in so you may miss that anything has happened. You can check new windows with [Alt]+[Tab].
  • The HTML editor does not work in all browsers. If you are using a Mac OS X and for some reason it does not appear, try using Firefox instead of Safari as a browser.

See also

Using Moodle forum discussions: