Hi,
I upgraded my server to 1.5 dev and... tachan ! HTML editor is gone.
I've checked the config.php files for blank lines or so, I've cheked the variables... and everithing seems ok, but the hTML editor that is ... gone
Any Ideas?
Ludo
Does this apply both IE and Mozilla/FireFox? Do you have any error messages in Firefox's javascript console?
- Janne -
- Janne -
It happens both in IE an firefox...
the javascript console in firefox show a lot of errors
I atach the snapshot.
Thank you Janne
Ludo
the javascript console in firefox show a lot of errors
I atach the snapshot.
Thank you Janne
Ludo
seems like error nr 2 is causing it.
Open htmlarea.php, find these lines (in search and replace function):
var strReplaced = '<?php print_string('itemsreplaced','editor'); ?>';
var strNotfound = '<?php print_string('searchnotfound','editor');?>';
replace these lines with:
<?php
$strreplaced = addslashes(get_string('itemsreplaced','editor'));
$strnotfound = addslashes(get_string('searchnotfound','editor'));
?>
var strReplaced = '<?php echo $strreplaced ?>';
var strNotfound = '<?php echo $strnotfound ?>';
and try again (remember to clear your browser cache).
Open htmlarea.php, find these lines (in search and replace function):
var strReplaced = '<?php print_string('itemsreplaced','editor'); ?>';
var strNotfound = '<?php print_string('searchnotfound','editor');?>';
replace these lines with:
<?php
$strreplaced = addslashes(get_string('itemsreplaced','editor'));
$strnotfound = addslashes(get_string('searchnotfound','editor'));
?>
var strReplaced = '<?php echo $strreplaced ?>';
var strNotfound = '<?php echo $strnotfound ?>';
and try again (remember to clear your browser cache).
Problem solved ,
thanks Janne you're the king!
Ludo
thanks Janne you're the king!
Ludo
Thanks
I'm king of Jacks... since I had left those lines there when It should've been done correctly at the first time...
I'm king of Jacks... since I had left those lines there when It should've been done correctly at the first time...
Is this fix in CVS already? I still have the problem (also on moodle.org)
Yes, it's in CVS.
Thanks, that pases the problem back to me I suppose (and yes, I've doublechecked my profile )
Koen, I think there is a typo in the dutch language in content of editor.php
Look for $string['cutpastemozilla']
In some way, the first ' is getting " and the compiler gets confused with \"plakken\".
Janne, ignore my other post ...
Look for $string['cutpastemozilla']
In some way, the first ' is getting " and the compiler gets confused with \"plakken\".
Janne, ignore my other post ...
I can't see anything wrong with the string. When I remove it, the problem stays. Als in English I have the problem.
It might have to do something with the language. With a completely clean site (empty database etc) default language in en, it works. Courses, created in nl don't give an editor.
It's strange I have the same problem on Moodle.org, wich is completely created in en.
I'm going to dig into this. The problem must be found.
It might have to do something with the language. With a completely clean site (empty database etc) default language in en, it works. Courses, created in nl don't give an editor.
It's strange I have the same problem on Moodle.org, wich is completely created in en.
I'm going to dig into this. The problem must be found.
So strange. I cleared my cache manu military and now the editor works: on moodle.org (must have the double quotes in the langpack - or the language files must be realy old) and on my testsites.
Just for fun I re-entered the quotes - keeps working, even when I clear cache, restart the webserver ... I'll leave them out anyway - replaced with italic tags, probably safer
Can someone with sufficient karma update or check the nl/editor.php on Moodle.org or are the quotes not yet in moodle.org (introduced in CVS on Sun May 8 21:29:23 2005 UTC)?
Just for fun I re-entered the quotes - keeps working, even when I clear cache, restart the webserver ... I'll leave them out anyway - replaced with italic tags, probably safer
Can someone with sufficient karma update or check the nl/editor.php on Moodle.org or are the quotes not yet in moodle.org (introduced in CVS on Sun May 8 21:29:23 2005 UTC)?
This editor only showed up on moodle.org even after clearing cache and changing language. Using Dutch als default language I keep on getting these errors:
Fout: missing ) after argument list Bronbestand: http://moodle.org/lib/editor/htmlarea.php Regel: 1842, Kolom: 102 Broncode: if (confirm("Jammer genoeg kun je de normale toetsenbordcombinatie (of zelfs de knop "plakken") niet gebruiken om tekst te plakken in deze editor. Dit is het gevolg van een beveiligingsfunctie die ingebouwd is in sommige versies van Mozill
Fout: HTMLArea is not defined Bronbestand: http://moodle.org/lib/editor/lang/en.php Regel: 14
Fout: HTMLArea is not defined Bronbestand: http://moodle.org/mod/forum/post.php?reply=113394 Regel: 243
Fout: missing ) after argument list Bronbestand: http://moodle.org/lib/editor/htmlarea.php Regel: 1842, Kolom: 102 Broncode: if (confirm("Jammer genoeg kun je de normale toetsenbordcombinatie (of zelfs de knop "plakken") niet gebruiken om tekst te plakken in deze editor. Dit is het gevolg van een beveiligingsfunctie die ingebouwd is in sommige versies van Mozill
Fout: HTMLArea is not defined Bronbestand: http://moodle.org/lib/editor/lang/en.php Regel: 14
Fout: HTMLArea is not defined Bronbestand: http://moodle.org/mod/forum/post.php?reply=113394 Regel: 243
Yes, I took the double quotes out of the nl lang pack, but the file isn't yet refreshed on Moodle.org. Should be fine if it is changed.
Janne, I have the same problem Koen mentionned.
After a cvs upgrade to 1.5 dev (2005050600 --> 2005051500) the HTML editor is gone (FireFox and IE). I think it was also gone in 2005050600.
Noticed you have a htmlarea_bak.php in ../lib/editor
Was curious, so I renamed htmlarea_bak.php back to htmlarea.php and voila ...the editor was back.
Koen <-- Could it be a language problem since moodle.org hasn't the problem ?
After a cvs upgrade to 1.5 dev (2005050600 --> 2005051500) the HTML editor is gone (FireFox and IE). I think it was also gone in 2005050600.
Noticed you have a htmlarea_bak.php in ../lib/editor
Was curious, so I renamed htmlarea_bak.php back to htmlarea.php and voila ...the editor was back.
Koen <-- Could it be a language problem since moodle.org hasn't the problem ?
I have the same problem on Moodle.org - A lot of HTML-practice
The dropdownbox to change the format (HTML, Moodle, Markdown) is gone and replaced by a fixed text.
The dropdownbox to change the format (HTML, Moodle, Markdown) is gone and replaced by a fixed text.
Renaming and reverting to the old files fixed the problem for me too, IIS 6.0, PHP 5.0.3, Win 2003 server,latest stable 1.5 release. Hmm, I think I need to investigate this a bit more.
Same problem: after upgrade to 1.5 stable, no more html editor, neither in FF nor in IE.
Tried all that is mentioned above, but the darn thing just refuses to reappear. Am getting desperate: we can't manage (any more) without it, is has become part of our (virtual) life.
Anything else I can do or try?
Tried all that is mentioned above, but the darn thing just refuses to reappear. Am getting desperate: we can't manage (any more) without it, is has become part of our (virtual) life.
Anything else I can do or try?
Strange, this is an old discussion - problem should be fixed now.
I assume you are using the latest 1.5
First clean your browsercache very good (I searched for hours and the problem was in the cache!)
Try with a different language (if you are using nl, you should use a version after mid may I guess)
I assume you are using the latest 1.5
First clean your browsercache very good (I searched for hours and the problem was in the cache!)
Try with a different language (if you are using nl, you should use a version after mid may I guess)
Had cleaned cache repeatedly, of both FF and IE but to no avail.
Had switched language, still no editor.
In the end I had some software clean the whole disk and then replaced htmlarea.php again by the previous version (_bak, dating from 2004) and lo and behold: the prodigal son of an editor has returned.
Thanks for the swift reaction.
Had switched language, still no editor.
In the end I had some software clean the whole disk and then replaced htmlarea.php again by the previous version (_bak, dating from 2004) and lo and behold: the prodigal son of an editor has returned.
Thanks for the swift reaction.
Try this one here.
I had same problem using a version downloaded this week.
The editor don't appears. The problem was solved when I renamed the htmlarea_bak.php to htmlarea.php (both in moodle_dir/lib/editor/).
Some new features don' t work with this solution, e.g., spell-checking, Search and Replace etc.
Now, I'm going to compare those files. Will be a good read, at least
Regards,
Edu Santos.
Brazil
The editor don't appears. The problem was solved when I renamed the htmlarea_bak.php to htmlarea.php (both in moodle_dir/lib/editor/).
Some new features don' t work with this solution, e.g., spell-checking, Search and Replace etc.
Now, I'm going to compare those files. Will be a good read, at least
Regards,
Edu Santos.
Brazil