No text editor body

No text editor body

by Chardelle Busch -
Number of replies: 50
Picture of Core developers

If I try to add a new event, the page loads with only the top menu of the text editor, but there is no body to type text into for the description .  (see attached image) If I toggle to html source, a teeny tiny body appears with a scrollbar. 

Any idea why this might be. 

Attachment Untitled-1.gif
Average of ratings: -
In reply to Chardelle Busch

Re: No text editor body

by Andrea Bicciolo -
Hi Chardelle, I experienced the same problem with IE6 under WinXP just before the 1.3 Release. It has been fixed now. What Moodle version are you running?
In reply to Andrea Bicciolo

Re: No text editor body

by Chardelle Busch -
Picture of Core developers

Hi Andrea,

Martin just upgraded my site to 1.3 and I this is my first time to try the calendar. I am also using IE6 under WinXP.  The weird thing is that I tried adding events several times for each type of event and every now and then the body section does show up, but there is no reason to it, it seems to be a random occurrence.  I might have to wait and have Martin check into it.

Thanks for the reply

In reply to Chardelle Busch

Re: No text editor body

by Jean-Pierre Pawlak -

Same problem over here (IE6/XP). Reloading the page seems to solve the problem.

In reply to Jean-Pierre Pawlak

Re: No text editor body

by Chardelle Busch -
Picture of Core developers
Yes, if you refresh the page it does bring up the text editor body, although this does not solve the problem.  As far as I am concerned, the calendar is not usable at this point. I don't want to have to tell users that if they are working under IE6/XP they have to click on new event, then hit refresh, then retry, then they can add the event.  Not user-friendly.  sad
In reply to Chardelle Busch

Re: No text editor body

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
No matter how much I try this with IE/XP I can not duplicate this bug in the HTML editor, which has been getting occasional reoprts in different contexts for the past couple of months.

It only happens on IE, and it only happens sometimes, it seems.  I can't see anything strange in your site logs, Chardelle - I'm at a bit of a loss.

Is the HTML editor working fine on all other pages?  (note that the editor is enabled in exactly the same way throughout Moodle)

What about if you try to add a user event in the calendar on this site?  Is the editor OK?
In reply to Martin Dougiamas

Re: No text editor body

by Chardelle Busch -
Picture of Core developers

Yes, I get the same thing here (see attached).  I was just looking at the source code of the add event page and comparing it to the source code for adding a post and I did find this difference (now don't laugh if this is silly cause you know I know nothing about coding)

From the add event to calendar page with text editor:

<textarea id="description" name="description" rows="10" cols="65" wrap="virtual"></textarea>
    </td>

And from an add post page:

<textarea id="message" name="message" rows="25" cols="65" wrap="virtual"></textarea>
    </td>

Could it be that there just aren't enough rows for the text area to show up?

Attachment addevent.gif
In reply to Chardelle Busch

Re: No text editor body

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I doubt this is the reason, but one never knows with flaky IE, so I've increased the number of lines just on moodle.org ... can you try it again?

Also, can you turn all on Javascript error reports in IE ... maybe you'll see something.

Tools -> Internet Options -> Advanced -> "Display a notification about every script error"
In reply to Martin Dougiamas

Re: No text editor body

by Chardelle Busch -
Picture of Core developers
Yes, now the text editor comes up just fine!  (Wouldn't it be nice if IE just went away) I hope this fixes the problem cause I'm going to bed now.
In reply to Chardelle Busch

Re: No text editor body

by koen roggemans -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
Verry strange. How is it possible that there aren't enough rows when the script is accessed the first time and then works fine after a refresh ? triest
In reply to koen roggemans

Re: No text editor body

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Can anyone else who was having the problem please try it too? (just make yourself an event on moodle.org)   If this is the solution I'll be very surprised!  Note my IE was always working so it must be a client setting somewhere.
In reply to Martin Dougiamas

Re: No text editor body

by Richard Williamson -
I had this problem, but Moodle.org now works for me. I don't think anyone has mentioned this, but my cure was to enlarge the editor to full screen - it worked fine then.
In reply to Martin Dougiamas

Hi Martin, since this problem with html editor and IE was apparenty NOT fixed in 1.3.1

by Michael Penney -
at least not for everyone, (see http://moodle.org/mod/forum/discuss.php?d=8754&parent=42212)and some of us can't ugrade right now anyway for other reasons.

Can you please tell me where to increase the number of lines?

Thanks!

Michael
In reply to Michael Penney

Re: Hi Martin, since this problem with html editor and IE was apparenty NOT fixed in 1.3.1

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Michael,

Unfortunately, it's not a simple change ... the HTML had to be moved around to workaround some very quirky IE behaviour.

Everyone who tested the fixes for me said it worked ... on which pages is it not working for you? 

If you can't upgrade the server I recommend getting Firefox which never had this problem.

In reply to Martin Dougiamas

Re: No text editor body

by Peter Sereinigg -

Hi Martin, we have the same problem with users in the german forum,
http://moodle.org/mod/forum/discuss.php?d=8309,
Sometimes it happens at my pc (BUT not before final 1.3)

Workarround, reload the page ...

Peter

In reply to Peter Sereinigg

Re: No text editor body

by koen roggemans -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators

I get it also every now and then. Another workaround is to hit the full screen button of the editor.

Martin, have you tried to restore the lessen in the backup I posted in bug 1327 ? When I try to edit the first page, it's so bad that I never get an editorbody. (multiple editors on one page) (on IE / win2k desktop)?

In reply to Chardelle Busch

Refresh/shift-refres h toggles editor body on/off

by Fernando Oliveira -
Picture of Plugin developers

Just tried adding a new event within the Moodle site (Moodle Demo Features course) and this is what I experienced: 

When I add a new event, the text editor body is NOT present but...

When I do a regular refresh (no shift), the editor body is expanded.

When I do a forced refresh (shift + refresh) the editor body disappears.

In effect, I can toggle the editor body on or off by alternating between a forced refresh and regular refresh.  Can anyone else duplicate this error?

In reply to Fernando Oliveira

No text editor body

by Chardelle Busch -
Picture of Core developers

Yes, I did duplicate this bizarre refreshing toggle effect. Does anybody know IE well enough to figure this out?

Also, could everybody post here what versions of things they are using.  Maybe it is a combination of things.  I am using IE 6 and XP.

In reply to Chardelle Busch

Re: No text editor body

by Chardelle Busch -
Picture of Core developers
Update:  I have had some users test this and so far nobody has had a problem with the text editor, even under IE6/Win XP, so the mystery remains.  I do know that since Martin changed the rows setup on Moodle, I have not had a problem--the text editor body always shows up, but on my site, where I haven't changed the row setup yet, I still have the problem (but it does seem to come and go).  I am going to wait awhile to change this on my site to see if anybody else reports having the problem. 
In reply to Chardelle Busch

Re: No text editor body

by Paul Nijbakker -

IE 6 with Win XP has been causing trouble for us in combination with another VLE, WebCT! I work with IE6 under Win 2000 and have no such problems, either with WebCT or Moodle. My only complaint is that sometimes the editor toolbar does not load entirely, which may freeze the browser, but that is not Moodle's problem.

In our experience with IE6 under Win XP there is something in the JAVA settings that causes problems, at least with WebCT. I cannot duplicate your problem, so I am not sure that could possibly have any effect on Moodle (which as far as I understand has no JAVA included).

Rgrds, Paul.

In reply to Chardelle Busch

Re: No text editor body

by Shirin Shirvani -
For running HTML Editor , these fuctions must be called ::

print_textarea(1,8, 50, "", "", "intro", "", $courseid=0);
use_html_editor("intro");

into= the name of field;

If you want to call these fuction use_html_editor("intro");  in the *.php file ,you must  call without any prarameter. like this : use_html_editor();
because when *.php file wants to render HTML page the editor had problem and can not show its body.

Pay attention that you can have as many as HTML Editors you want to have and in this file (*.php), and  the number of  print_textarea(1,8, 50, "", "", "intro", "", $courseid=0);   fuction explan the number of your HTML Editor in your page, but just for one time in the end of that section you must call this fuction (use_html_editor()); .

And  if you want to call it in *.html, you must call it with parameter. like: use_html_editor("intro");


I solved my problem from this way. And I hope for you................

Shirin Shirvani 
Average of ratings: Useful (1)
In reply to Chardelle Busch

Re: No text editor body

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
OK, I've found and fixed these problems in the Moodle 1.3 branch, and will soon release a Moodle 1.3.1 for you all.

The problems were actually different in various places  ... I still don't know why sometimes it worked in some IE installations and sometimes not in others with exactly the same specs, but it might have been timing-related.

On the calendar page there seems to have been a timing conflict with another Javascript, and on many of the module-creation pages the problem seems to be with a Javascript that was embedded inside a table.  

It's all very strange, but I feel pretty confident it's all fixed now.
In reply to Martin Dougiamas

Re: No text editor body

by Shannon Morgan -
So...if we are running 1.3.4 should we be experiencing this problem?  We recently upgraded and now all of the sudden students are having problems.
In reply to Shannon Morgan

Re: No text editor body

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Absolutely no idea what would be going on there, sorry. I thought it was all fixed ... sad

Make sure you don't have blank lines in your config.php
In reply to Martin Dougiamas

Re: No text editor body

by Mike Thompson -

The problem of no body in the htmlarea of the html editor seems to have appeared out of the blue. It occurs on all our courses but predominately only when we create a new Forum Thread or a New Forum (it does not appear to happen when we reply to thread nor when the editor is called by other functions such as "add a web link" or "add a label"). The attached screen shot shows what we get - including the rather strange path.

We are using Moodle1.4.3+ with XP and IE6, both with SP2.

The problem appears to have emerged in the last week or so and no changes have been made to our set up in that time frame.

Any help would be much appreciated.

Thanks

Mike Thompson

Truro College

Cornwall

UK

Attachment htmlarea.jpg
In reply to Mike Thompson

Re: No text editor body

by Laurie Savage -
It's bizarre. The same thing has happened on our system today. Same set up and quite out of the blue. Mozilla came to the rescue. We have it installed on all our XP machines.
In reply to Laurie Savage

Re: No text editor body

by Mike Thompson -

We seem to have solved this mystery - having said that we made no changes, we realised that we had changed our Moodle theme to Cornflower. When we changed back to any of the standard themes the HTML area problem goes away - both the Cornflower and the Poweraid themes seem to have the problem.

Anyone got any thoughts about what might be bdifferent in the way these themes get rendered which could affect the HTML editor?

In reply to Mike Thompson

Re: No text editor body

by Ray Jr -

Hello Mike,

I'm using Cornflower theme (Moodle 1.4.3+, IE6, XPS2) and I'm not experiencing any problems with html editor.

Can you repeat this problem by going back to Cornflower? I would like to know if this is an intermittent or constant problem. In other words, does the problem always occur when you switch to Cornflower?

Regards,

Ray

In reply to Mike Thompson

Re: No text editor body

by Bill Burgos -
Hi Mike,

I'll take a stab at it. May or may not help....

Have you made any changes to the themes you are using? Customizing? colors? logos? etc.?

Strange things could happen if you leave blank lines at the end of the config.php files in the theme directory. Blank lines are automatically put into the file when you are editing in CPanel and some of the Microsoft word processors. Checking the cornflower theme config.php for this might also be a start.
In reply to Bill Burgos

Re: No text editor body

by Mike Thompson -

Hi guys

We are using the standard Moodle Themes without any changes at all. We have tried swapping back to Cornflower and the problem comes back without exception.

We will take a look at the config file to see if there are any blank lines.

We will experiment with a customised theme to see if we can re-create the problem.

Cheers

Mike

In reply to Mike Thompson

Re: No text editor body

by John Hobson -

I have been having this probalem for the last six months. Refreshing generally does the job so I can live with it. Win XP Sp2, IE6 and customised Poweraid. Sounds like I am asking for it!

J

In reply to John Hobson

Re: No text editor body

by Mike Thompson -

Hi John

Just as an experiment try changing to a standard Moodle theme (not Cornflower) - I bet the problem goes away.

We cannot find any logical reson for this behaviour except that it is only there when we use IE6 - Firefox is fine - but as an Institution we are bound to IE6 -Boo Hoo!!

Mike

In reply to Mike Thompson

Re: No text editor body

by Cypercat Saint -

I am having the same problem with the same theme. Will work with firefox but not IE6.

If you come up with a solution let me know...I like this theme

In reply to Mike Thompson

Re: No text editor body

by Monika Sawicka -

Hi everyone,

that post is for everyone who tried everything but the body of the HTML editor don't show up anyway.

In my case my IE browsers didn't accept height = "auto" specified in HTMLArea.Config = function () in htmlarea.php (line 107). So instead of "auto" for height and width I put numbers. Now my html editor always has the same size, but at least shows up every time.

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

before: (line: 107-117)

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;

Best regards

In reply to Martin Dougiamas

Re: No text editor body

by Daniel Mikšík -
Picture of Core developers Picture of Translators

I was able to reproduce the "no editor window" problem in calendar both at my site, and here at moodle.org (in the Playground course - see attached file).

As one of my colleagues pointed out that she has been running into trouble only when trying to add a calendar event for several times consecutively, I changed the IE setting for Temporary Internet Files to Check for newer versions of stored pages: Every visit to the page. And the problem disappeared.

Could I ask some of those having the same problem to confirm or contradict my finding? Thank you.

Attachment calendar_no_editor_window.png
In reply to Daniel Mikšík

Re: No text editor body

by James Robertson -

Hi Daniel,

Thanks, that fixed it for me.  I am running 1.5 (22 Jun CVS) on WinXP and Win32, IE6, theme is 1.5 Moodle Standard with 2 minor alterations.  I had not seen any problem until I edited a calendar event just after saving it.  Apparently this problem can still bite (it bit me), so I am surprised to see no other responses to your post.

I am also surprised that stored page version would have this effect, since the editor didn't reappear even when I used the pop-up large editor and then closed it, or went to another page and then came back.

Jim Robertson.

In reply to Daniel Mikšík

Re: No text editor body

by Stephen Reiach -
I know this is an older post but im a new user trying to solve this problem.

I tried the 'Every visit' change however it still has the same problem. Especially when trying to make a new question for quizes. The refresh page never works.

Using the 'Enlarged editor' does work though.

Moodle 1.5 on Windows XP IE 6.

Has anything worked for anyone else?
In reply to Chardelle Busch

Re: No text editor body

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
This problem has just crept back into my site... Its occuring in a custom display I have created, and I have gone through it thoroughly for HTML errors (there are none). No scripting errors come up either, and it only happens on IE.

One thing I have noticed is that if I clear the cache, it always works the first time. Thereafter, the problem comes back. Don't know why caching should cause a problem.

Does it matter where the htmleditor script appears in the file?

UPDATE:
I moved the 'use_html_editor' script around so that its one of the last things on the page and outside of all the tables. This seems to make it work consistently on IE. No idea why positioning should matter.

mike
In reply to Mike Churchward

Re: No text editor body

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Yes, use_html_editor definitely has to be one of the last things on the page.  It's completely wierd but I came to the same conlusion.  My guess is some sort of timing issue in the IE rendering ...
In reply to Martin Dougiamas

Re: No text editor body

by Janne Mikkonen -
I second that.

IE seem to "read" page from top to bottom while it's rendering it. Mozilla/Firefox seem to "read" page from bottom to top, which means that it'll wait until the whole page is loaded ( not exact science wink ), but I if you have two editor at one page you can test it by counting loaded frames (window.frames) and in Firefox the last editor is in frames index 0 and with IE the fist editor is in frames index 0.

In reply to Mike Churchward

Re: No text editor body

by Dan Segarra -

UPDATE:
I moved the 'use_html_editor' script around so that its one of the last things on the page and outside of all the tables. This seems to make it work consistently on IE. No idea why positioning should matter

How does one go about 'moving' the 'use_html_editor' script'

Moodle came with my site and I love it, but I see this as a serious problem for my members.

Thanks

Dan

In reply to Dan Segarra

Re: No text editor body

by Wen Hao Chuang -
By the way, any recent update on this serious bug?? Is there any proposed fix that REALLY permanently fix this problem on IE?? Anyone ever test this on IE7 beta?? Thanks!
In reply to Wen Hao Chuang

Re: No text editor body

by Monika Sawicka -

Hi Wen,

Yes, I has tested this on IE7 and .. under English Windows it works, but for example Spanish version doesn't. Try to change the width and height in htmlarea.php (check my previous post)

Best Regards,

In reply to Monika Sawicka

Re: No text editor body

by Tim Grech -
I have this problem with XP, IE6 and IE7 at worl. No problem with Firefox.

I don't have access to our Moodle site to change any files, nor could I.

I will try changing to another standard theme, although we are currently using a standard theme.

Pressing CTRL+F5 works but we have to do it every time!
In reply to Tim Grech

Re: No text editor body

by Tim Grech -

Woohooo! Changinbg themes worked for me anyhow - we were using Cornflower (suggested problem on another thread).

Sorry to all for duplicating this everywhere.

In reply to Chardelle Busch

Re: No text editor body

by Wen Hao Chuang -
Just wondering if there is a bug tracker entry for this one, and if so, what is the number? Did this issue actually get fixed in Moodle 1.8? Many thanks!