Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Text editor FAQ.

Text editor FAQ: Difference between revisions

From MoodleDocs
(What is new with the HTML editor in Moodle 2.0?)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Be sure to see the [[HTML editor]] page for more information.
{{Editing text}}
==I can't find the option to do......==
 
Click the computer screen icon at the far right of the top row. It will say "Toggle fullscreen mode" when you hover over it. The editor will now appear in a pop-up with the full range of options available (e.g. tables).  


==I can't find the option to do......==
==Can I customize the text editor or add other icons like an anchor or horizontal rule?==
In Moodle 2.4 out in December 2012, you will be able to customise the text editor. See MDL-35172


Click the icon at the far right of the bottom row (two boxes with an arrow). It will say "Enlarge Editor" when you hover over it. The editor will now appear in a pop-up with the full range of options available (e.g. tables).
Until you upgrade to 2.4:
Edit one of the toolbar defs in yourmoodle/lib/editor/tinymce/lib.php.  
E.g. In the sample entry below, 'hr' is added just before 'image'
'theme_advanced_buttons3' => "bullist,numlist,outdent,indent,|,link,unlink,moodlenolink,|,hr,image,{$xemoticon}{$xmedia}{$xdragmath}nonbreaking,charmap",


==The HTML Editor does not appear==
==The Text editor does not appear==


Check the following points and/or discussions (in no particular order);
Check the following points (in no particular order);


* HTMLArea only supports Firefox and Internet Explorer
* Is the TinyMCE HTML editor enabled in ''Settings > Site administration > Plugins > Text editors > Manage editors''?  
* GoDaddy http://moodle.org/mod/forum/discuss.php?d=117556
* Is 'Use HTML editor' set in ''Settings > My profile settings > Edit profile''?
* Analytics code or advertisement scripts http://moodle.org/mod/forum/discuss.php?d=117034
* Is JavaScript enabled for my browser?
* Hacked site / injected code http://moodle.org/mod/forum/discuss.php?d=116374
* Editor can be disabled from Administration > Appearance > HTML editor > Use HTML editor or
* Editor can be disabled from user profile (When editing text > Use standard web forms)
* Settings of browser (javascript may be disabled)
* Some custom plugin may break source code


==How can I enable a spell-check?==
==How can I enable a spell-check?==


If you want the HTML editor to have a spell-check button, you need to install aspell 0.50 or later on your server, and enter the correct path to access the aspell binary in ''Administration > Server > [[System paths]]''.
The default spell engine is Google spell. This can be changed in ''Settings>Site administration>Plugins>Text editors>TinyMCE HTML editor''. It is possible also to use PSpell or PspellShell. Spell To use spell checking you need to install aspell 0.50 or later on your server, and enter the correct path to access the aspell binary in ''Administration > Server > [[System paths]]''.


==How we can disable the spell check button for specific instances in a quiz?==
==How we can disable the spell check button for specific instances in a quiz?==
Line 33: Line 35:
Suggested by Joshua Westerway.
Suggested by Joshua Westerway.


==What is new with the HTML editor in Moodle 2.0?==
==What is the biggest chunk of text you can edit?==
 
Maximum size of the forum post text (mysql) is 65535 characters or less if you use multibyte characters. From a forum post, http://moodle.org/mod/forum/discuss.php?d=203023#p885758
See [[HTML editor 2.0]].


==See also==
==See also==


*Using Moodle [http://moodle.org/mod/forum/view.php?f=224 HTML editor forum]
*Using Moodle [http://moodle.org/mod/forum/view.php?f=224 HTML editor forum]
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=103418 Students can't upload files using HTML editor] forum discussion


[[Category:HTML editor]]
[[Category:FAQ]]
[[Category:FAQ]]
[[de:Text-Editor FAQ]]

Latest revision as of 21:07, 3 January 2013

I can't find the option to do......

Click the computer screen icon at the far right of the top row. It will say "Toggle fullscreen mode" when you hover over it. The editor will now appear in a pop-up with the full range of options available (e.g. tables).

Can I customize the text editor or add other icons like an anchor or horizontal rule?

In Moodle 2.4 out in December 2012, you will be able to customise the text editor. See MDL-35172

Until you upgrade to 2.4: Edit one of the toolbar defs in yourmoodle/lib/editor/tinymce/lib.php. E.g. In the sample entry below, 'hr' is added just before 'image' 'theme_advanced_buttons3' => "bullist,numlist,outdent,indent,|,link,unlink,moodlenolink,|,hr,image,{$xemoticon}{$xmedia}{$xdragmath}nonbreaking,charmap",

The Text editor does not appear

Check the following points (in no particular order);

  • Is the TinyMCE HTML editor enabled in Settings > Site administration > Plugins > Text editors > Manage editors?
  • Is 'Use HTML editor' set in Settings > My profile settings > Edit profile?
  • Is JavaScript enabled for my browser?

How can I enable a spell-check?

The default spell engine is Google spell. This can be changed in Settings>Site administration>Plugins>Text editors>TinyMCE HTML editor. It is possible also to use PSpell or PspellShell. Spell To use spell checking you need to install aspell 0.50 or later on your server, and enter the correct path to access the aspell binary in Administration > Server > System paths.

How we can disable the spell check button for specific instances in a quiz?

The spell check is very handy for most circumstances but a quiz where you are looking at spelling and punctuation in student responses kind of defeats the purpose of the question. You can use the theme CSS files to disable the button on a specific question type. Try:

 .essay div[title='Spell-check'] {
 display:none;
 }

The spell check button should be displayed everywhere except on the essay question type response box.

Suggested by Joshua Westerway.

What is the biggest chunk of text you can edit?

Maximum size of the forum post text (mysql) is 65535 characters or less if you use multibyte characters. From a forum post, http://moodle.org/mod/forum/discuss.php?d=203023#p885758

See also