Moodle

HTML editor problem with Firefox but not with IE

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Cannot Reproduce
  • Affects Version/s: 1.5.2
  • Fix Version/s: 1.8.4, 1.9
  • Component/s: HTML Editor
  • Labels:
    None
  • Environment:
    All
  • Affected Branches:
    MOODLE_15_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE

Description

Software versions :

Moodle 1.5.2 + (2005060222)

// $Id: htmlarea.php,v 1.60.2.3 2005/07/13 20:52:12 julmis Exp $

Firefox 1.0.6

The code join make problem with HTML editor on Firefox ( no problem on IExplorer).

  • the html button doesn't work ( to see html code is impossible)
  • saving does'nt work

Here are firefox console javascript errors :

Erreur : syntax error

Fichier Source :

Ligne : 1, Colonne : 20

Code Source :

return openpopup(

----------------------------------------------------

Erreur : uncaught exception: [Exception... Failure nsresult: 0x80004005 (NS_ERROR_FAILURE) location: JS frame :: http://www.sante-pub.u-nancy.fr/elearning2005/lib/editor/htmlarea.php?id=8 :: anonymous :: line 2235 data: no]

Here is the HTML code :

En anglais, le verbe to <a class=glossary autolink glossaryid1 title=Glossaire technique: Chat onclick=

function onclick(event) {

return openpopup( href=http://www.sante-pub.u-nancy.fr/elearning2005/mod/glossary/showentry.php?courseid=8&concept=Chat target=entry ?menubar=0,location=0,scrollbars,resizable,width=600,height=450 showentry.php?courseid=8&concept=Chat>chat</a> veux dire ca<a class=glossary autolink glossaryid1 title=Glossaire technique: Utilisateur onclick=

function onclick(event) {

return openpopup( href=http://www.sante-pub.u-nancy.fr/elearning2005/mod/glossary/showentry.php?courseid=8&concept=Utilisateur target=entry ?menubar=0,location=0,scrollbars,resizable,width=600,height=450 showentry.php?courseid=8&concept=Utilisateur>user</a><br /><br />Par extension un <a class=glossary autolink glossaryid1 title=Glossaire technique: Chat onclick=

function onclick(event) {

return openpopup( href=http://www.sante-pub.u-nancy.fr/elearning2005/mod/glossary/showentry.php?courseid=8&concept=Chat target=entry ?menubar=0,location=0,scrollbars,resizable,width=600,height=450 showentry.php?courseid=8&concept=Chat>chat</a> est un outil du web qui permet une discussion en direct ( synchrone ).<br /><br />Le <a class=glossary autolink glossaryid1 title=Glossaire technique: Chat onclick=

function onclick(event) {

return openpopup( href=http://www.sante-pub.u-nancy.fr/elearning2005/mod/glossary/showentry.php?courseid=8&concept=Chat target=entry ?menubar=0,location=0,scrollbars,resizable,width=600,height=450 showentry.php?courseid=8&concept=Chat>chat</a> qui est proposé sur la plateforme permet donc une discussion entre plusieurs personnes. Il vous faut vous rendre sur la page désignée par <a href=http://www.sante-pub.u-nancy.fr/elearning/mod/chat/view.php?id=1146>ce lien</a><br />( depuis la page d'acceuil un lien existe dans le cadre de gauche en haut).<br />Sur cette page vous pouvez voir la liste des personnes connectée ( si vous ne voyez rien qui ressemble à une liste, c'est qu'il n'y a personne !!!)<br /><br />Pour rentrer dans la discussion cliquez sur <a title=Chat href=http://www.sante-pub.u-nancy.fr/elearning/mod/chat/gui_header_js/index.php?id=1 target=chat281 xonclick=function onclick(event) {

return openpopup(>Cliquer ici pour participer au chat</a>.<br />Une autre fenêtre s'ouvre, divisée en trois partie :<br /><ul><li>une colonne à droite qui affiche les photos des personnes connectées.</li><li>A gauche, sont inscrits les <a class=glossary autolink glossaryid1 title=Glossaire technique: Message onclick=

function onclick(event) {

return openpopup( href=http://www.sante-pub.u-nancy.fr/elearning2005/mod/glossary/showentry.php?courseid=8&concept=Message target=entry ?menubar=0,location=0,scrollbars,resizable,width=600,height=450 showentry.php?courseid=8&concept=Message>message</a>s des différentes personnes</li><li>En bas, un long cadre dans lequel vous taper vos <a class=glossary autolink glossaryid1 title=Glossaire technique: Message onclick=

function onclick(event) {

return openpopup( href=http://www.sante-pub.u-nancy.fr/elearning2005/mod/glossary/showentry.php?courseid=8&concept=Message target=entry ?menubar=0,location=0,scrollbars,resizable,width=600,height=450 showentry.php?courseid=8&concept=Message>message</a>s. Ceux ci ne sont envoyés que lorsque vous tapez sur la touche entrée de votre clavier.</li></ul><p><br />Le <a class=glossary autolink glossaryid1 title=Glossaire technique: Chat onclick=

function onclick(event) {

return openpopup( href=http://www.sante-pub.u-nancy.fr/elearning2005/mod/glossary/showentry.php?courseid=8&concept=Chat target=entry ?menubar=0,location=0,scrollbars,resizable,width=600,height=450 showentry.php?courseid=8&concept=Chat>chat</a> est bien adapté pour des échanges rapides et conviviaux entre quelques personnes. Pour d'autres objectifs, il faut mieux utiliser le <a class=glossary autolink glossaryid1 title=Glossaire technique: Forum onclick=

function onclick(event) {

return openpopup( href=http://www.sante-pub.u-nancy.fr/elearning2005/mod/glossary/showentry.php?courseid=8&concept=Forum target=entry ?menubar=0,location=0,scrollbars,resizable,width=600,height=450 showentry.php?courseid=8&concept=Forum>forum</a>. </p><p>Vous pouvez d'ailleurs utiliser le <a class=glossary autolink glossaryid1 title=Glossaire technique: Forum onclick=

function onclick(event) {

return openpopup( href=http://www.sante-pub.u-nancy.fr/elearning2005/mod/glossary/showentry.php?courseid=8&concept=Forum target=entry ?menubar=0,location=0,scrollbars,resizable,width=600,height=450 showentry.php?courseid=8&concept=Forum>forum</a> pour organiser des <a class=glossary autolink glossaryid1 title=Glossaire technique: Chat onclick=

function onclick(event) {

return openpopup( href=http://www.sante-pub.u-nancy.fr/elearning2005/mod/glossary/showentry.php?courseid=8&concept=Chat target=entry ?menubar=0,location=0,scrollbars,resizable,width=600,height=450 showentry.php?courseid=8&concept=Chat>chat</a>s à heures fixée. </p>

Activity

Hide
Mathieu Petit-Clair added a comment -

Can't reproduce anymore: actually, I'm not too sure of what the bug was exactly. Copying the popup code from a glossary entry works for me now, at least in recent Moodle versions.

Show
Mathieu Petit-Clair added a comment - Can't reproduce anymore: actually, I'm not too sure of what the bug was exactly. Copying the popup code from a glossary entry works for me now, at least in recent Moodle versions.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: