Normally I use Firefox and there everything is working fine.
- Jani -
- Jani -
Somewhere around line 756 ( in /lib/htmlarea.php ) editors editarea height is defined like this:
var height = (this.config.height == "auto" ? (this._ta_size.h) : this.config.height);
Change this line to:
var height = (this.config.height == "auto" ? ((this._ta_size.h != null) ? this._ta_size.h : 30) : this.config.height);
or
var height = (this.config.height == "auto" ? 30 : this.config.height);
If this clears the problem we'll know where it is and how to fix it.
- Janne -
-> that's correct path. Did you test this fix with IE? Which version?
- Jani -
Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
Vast: Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
I have also make more testing with Janne's first solution. It seems to be that I must refresh every time I start editing dfwiki. This problems occurs in IE 6.0 (Win XP SP2). But using Firefox 1.0.7 is okay - no problems!
- Jani -
Re: Vast: Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
Re: Vast: Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
actually I'm not our codemaster but we have just tested your code.
Your first line:
var height = (this.config.height == "auto" ? ((this._ta_size.h != null) ? this._ta_size.h : 30) : this.config.height);
-> No effect at all. The bug is same as I reported earlier. Refreshing helps.
and your second line:
var height = (this.config.height == "auto" ? 30 : this.config.height);
-> Effect: Edit area is missing in both FF and IE . In FF it gives a short "flash" of edit area, but then it disappers again. In IE it shows a small white strip of edit area, but it cannot edit.
- Jani -
Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
var height = (this.config.height == "auto" ? ((this._ta_size.h != null) ? this._ta_size.h : 250) : this.config.height);
Underneath this line you can add debugging lines:
alert(this._ta_size.h);
alert(height);
Which tells you the exact height value ( stored in this._ta_size.h and height variables ) . Remove these debugging lines when you're done.
And remember when you change these lines you should empty your browsers cache.
- Janne -
Vast: Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
thanks for this code. We tested it yesterday and try with different values. Sometimes it shows a small edit field BUT usually the bug was still there, showing no edit field as I described earlier. Alerts were working OK.
We'll continue testing and I'll send here more exactly information at tomorrow or friday.
- Jani -
Vast: Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
Re: Vast: Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
Hello Jani,
maybe it can help you. I got the same problem before. Checking if the value of this._ta_size.h is NULL didin´t help, but.... checking if this._ta_size.h is 0... I just put a very simple condition before and it works. I hope it´s also gonna work for you!
if(this._ta_size.h==0 || this._ta_size.h==NULL){
this._ta_size.h=300;
}
var height = (this.config.height == "auto" ? (this._ta_size.h) : this.config.height);
Re: Vast: Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
Re: Vast: Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
Hello,
if that doesn't work, you can also try to refresh the webpage. So instead of putting:
if(this._ta_size.h==0 || this._ta_size.h==NULL){
this._ta_size.h=300;
}
var height = (this.config.height == "auto" ? (this._ta_size.h) : this.config.height);
you can try:
var height = (this.config.height == "auto" ? (this._ta_size.h) : this.config.height);
height = parseInt(height);
if( height==0){
window.location.reload();
}
Best regards
Vast: Re: Vast: Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
and thank you! We try both of your codes. This later one seems to work better than previous one.
- Jani -
Re: Vast: Re: Vast: Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
Hi
I notice that I have 2 files in the lib/editor folder
htmlarea.php and htmlarea_bak.php
No idea why there are two but the second one contains the line
var height = (this.config.height == "auto" ? (this._ta_size.h + "px") : this.config.height);
Would this work better in IE?
Jonathan Smith
Vast: Re: Vast: Re: Vast: Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
we just test this line
var height = (this.config.height == "auto" ? (this._ta_size.h + "px") : this.config.height) with IE.
Sometimes editor textfield was not shown as I have described earlier so it doesn't work very well. Try Monika's code (the second one), it helped us.
I guess html_bak.php is a backup file?
- Jani -
Re: Vast: Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
we are now using that second piece of code and it has worked fine. However, when using wiki page preview IE sometimes gives the message shown below. Everything is fine after pressing retry but is there a way to fix this?
- Laura
Re: Vast: Re: Vast: Re: Vast: Re: Vast: Html Editor do not work
Hi Laura,
instead of refreshing the web page, you can change the width and height in HTMLArea.Config = function () function (line 107). Some versions of IE don´t accept "auto".
--------------------------------------
before: (line: 107-117) of htmlarea.php
HTMLArea.Config = function () {
this.version = "3.0";
this.width = "auto";
this.height = "auto";
// enable creation of a status bar?
this.statusBar = true;
// maximum size of the undo queue
this.undoSteps = 20;
.....
after
HTMLArea.Config = function () {
this.version = "3.0";
this.width = 620;
this.height = 250;
// enable creation of a status bar?
this.statusBar = true;
// maximum size of the undo queue
this.undoSteps = 20;
I hope ot will help.
Best regards
it is, as you have discribed.
but only by both of us?? have we a misconfiguration in the IE??
Actually, my students and I are having the problem with Forums and the Glossary (I don't use the Wikis in my class). From what I've read on these help forums, it seems to be a global problem with the HTML Editor.
In a testing environment with a very recent 1.5.3+ version as well as 1.6 beta3, both with the latest dfwiki (that is called wiki now, version 2006042001) and using the standard theme I still have this problem with IE6 and also with IE7 beta2. Firefox gives no problems but my students only can use IE6 at school.
I hope this nasty problem is solved very soon within Moodle. I don't think that Microsoft is willing to change IE for it.