Problem with HTML editor in version 1.8 +

Problem with HTML editor in version 1.8 +

by Emmanuel de Ternay -
Number of replies: 1

Hi everybody,

I encountered problems using HTML editor in version 1.8 +. I'll try to explain them here:

  1. I followed some advices that say to develop pages with an external editor (Microsoft FrontPage in this case) and pasted the generated HTML code in the Moodle HTML editor. Apparently it worked well, but when I saved changes, all the text disappeared. After trying to solve the problem, I discovered that the HTML code was too large. In this case, Moodle doesn't save anything and doesn't display any warning message.
  2. I'm using Moodle with the spanish language and need to use a lot of accentuated characters (ó, é, í, á, etc.). Each time I save the page, it changes the accentuated character with two interrogation characters and transform the text in something unreadable. After some tries, I saw that the first version was all right, but when I modified the page and saved the changes, then the editor changed all the accentuated characters. The editor works well the first time, but modifies all the accentuated after a change.

Does anyone know work arounds for these 2 problems, or at least for the second one? Maybe I have to configure my PHP or Oracle database (I'm using Oracle instead of MySql). I'll be very grateful for any help.

Average of ratings: -
In reply to Emmanuel de Ternay

Re: Problem with HTML editor in version 1.8 +

by Emmanuel de Ternay -

Just to add information:

  1. I noticed that all the special characters used in english are processed correctly, changed from " to &quot;, or from < to &lt; in the HTML source, but with accentuated characters, the editor doesn't work in the same way.
  2. One possibility is to switch to HTML source editor, and transform these characters with the correct string (á -> &aacute; for example).
  3. If you use the HTML source editor, you can't switch to the HTML editor, because it will change any string to the special character, and when you'll save, it will change all special characters to ??. So you must save with the editor in HTML source mode.
  4. You can't use the enlarge editor because of the same problem. When you close it, it changes all the special characters, and then if you save, it transforms the special characters in ??.
  5. If you forgot one special character and try to update the text, you have to load the HTML editor. Then it loads all the special characters and if you switch to HTML source mode, it won't change the special chatracters introduced before to the string. If you make the change and save, you'll lost all the special characters introduced previously. If you want to correct a text, you have to correct in HTML source mode all the special characters, including those that were correct.

The Moodle HTML editor converts writing a text in Spanish in a hassle. I hope you can help me correct my configuration to make it work correctly with special Spanish characters.