Moodle 1.9.5+ HTML editor disappeared
Number of replies: 34I've searched the forums and the tracker, but haven't seen anything about this issue. Is anyone else having a problem, or any suggestions on next steps?
Thanks,
Brian... disappeared...
Re: Moodle 1.9.5+ HTML editor disappeared

Re: Moodle 1.9.5+ HTML editor disappeared
1. In the administration the box "html editor" is checked.
2. My config.php has been attacked. I fix this. But the problem remains.
3. I upgrade to Moodle 1.9.5. Now I do not have acess to the picture files... and I don't have the html editor either,

4. At this moment I found out that the ini.php could be damaged but I do not have access to it, so... I send a message to my ISP. I am waiting and reading the security foruns and the wikis.
Bye António
Re: Moodle 1.9.5+ HTML editor disappeared
if (typeof _editor_url == "string") {
// Leave exactly one backslash at the end of _editor_url
_editor_url = _editor_url.replace(/\x2f*$/, '/');
} else {
//alert("WARNING: _editor_url is not set! You should set this variable to the editor files path; it should preferably be an absolute path, like in '/htmlarea', but it can be relative if you prefer. Further we will try to load the editor files correctly but we'll probably fail.");
_editor_url = '<?php echo $url; ?>';// we need relative path to site root for editor in pages wit hrequired https
}
Re: Moodle 1.9.5+ HTML editor disappeared
Yes, it's normal code from lib/editor/htmlarea.php
Is your site still missing editor (htmlarea), António?
Re: Moodle 1.9.5+ HTML editor disappeared
The anwser is yes!

Now I am going to make another update and see how it goes. Without html editor its very hard to use Moodle.
I have all files that are needed to show the editor but I don't it seems that MOODLE doen't know or its disable to get the software to load the editor.
Thanks again. António
Re: Moodle 1.9.5+ HTML editor disappeared
Re: Moodle 1.9.5+ HTML editor disappeared
Christian,
that code is normal code from lib/editor/htmlarea.php
Have you checked these issues:
http://moodle.org/mod/forum/discuss.php?d=61045#p522696
In practise any custom javascript or injected code (ads etc) can break HTMLArea (current default editor of moodle).
Edit: In your case I suspect a hacked code - I just visited your site and right after body tag in source code is
<i style="display:none"> xeex322705 </i>which reminds about hacked sites from the past. If you have upgraded lately your moodle itself might be clean but some non upgraded files like theme files or config.php may still have some injected code - or some php file from your site might still add extra tags to other php files.
Re: Moodle 1.9.5+ HTML editor disappeared
Thanks for your quick reply. I'll check those other areas over the next day or two. I did check the config.php which had been hacked in the earlier (1.8.2) version and it appeared fine.
Thanks again.
Chris
Re: Moodle 1.9.5+ HTML editor disappeared
After searching through many of the files I found a tiny bit of code at the top of the config.php file that I missed the first time through. I think when I first looked, just after our upgrade, and found numerous links I wasn't sure what to delete. Thankfully I had a backup folder on another server and by looking at its config.php I found what to change.
Thanks again for your help. The HTML editor is back.
Cheers,
Chris
回复: Re: Moodle 1.9.5+ HTML editor disappeared
Re: Moodle 1.9.5+ HTML editor disappeared
I do have all the codes as you mentioned to be had in htmlarea.php even then I am not getting html editor in moodle 1.9.5+ Please help me soon
Re: Moodle 1.9.5+ HTML editor disappeared
If the reason is not injected spam code in config.php and other php files the next common reason is google analytics code in a wrong place - something like this at the bottom of source:
<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->
Re: Moodle 1.9.5+ HTML editor disappeared
I would like to use it to edit the themes....is that possible?...assuming of course I can find it!
I am using the current version and Safari on a Mac Leopard.
Cheers,
Paul
Re: Moodle 1.9.5+ HTML editor disappeared
It will not help you with editing themes however.
Re: Moodle 1.9.5+ HTML editor disappeared
I understand that the editor will not operate in Safari, however, after the update, it's not operating in any browser... Firefox included.
Anyone else have any clues?
Thanks,
Brian
Re: Moodle 1.9.5+ HTML editor disappeared
I appreciate that this was not your issue. I was directing that reply to Paul, who stated he was only using Safari.
Sorry I can not help with your issue.
Jon
Re: Moodle 1.9.5+ HTML editor disappeared
Paul
Re: Moodle 1.9.5+ HTML editor disappeared
There is also an option in your user profile called "When editing text" to use the editor or not. If this is set to 'Use standard web forms' you will not see the editor.
Cheers
Teresa
Re: Moodle 1.9.5+ HTML editor disappeared
After a couple of hours of searching through the code and files, I found the culprit. We had DragMath installed on the server, and evidently, it's not compatible with the newest version of Moodle and the HTML editor. I had to manually remove all the dragmath code from the javascript, php, and other files, but alas, the HTML editor is finally working.
I hope this helps anyone who may be having the same problem. Dang plug-ins...
Thanks,
Brian... disappeared...
Re: Moodle 1.9.5+ HTML editor disappeared
Dragmath itself is compatible with any version of moodle but you may have used for example old version of adminlib.php or somehow your custom Dragmath integration has not found the files it was looking for...
Marc G. - the maintainer of Dragmath plugin - might be interested to know the version of your dragmath and how you upgraded dragmath (or did you actually upgrade Dragmath and other non core plugins at all?) - if you have time to post a reply to Maths forum...
Re: Moodle 1.9.5+ HTML editor disappeared
Re: Moodle 1.9.5+ HTML editor disappeared
Re: Moodle 1.9.5+ HTML editor disappeared
fix since the new zip install simply would have rendered your old install moot, but you at leSt have things cleaned out...
But, newer versions of dragmath have some internal structural changes (limited to dragmath directory) - once you have the 0.7.7.1 moodledragmath zip installed you can maintain dragmath in one of two ways, either by replacing the dragmath folder with a replacement from dragmath sourceforge (not recommended unless you really know what you are doing), or waiting for a new moodle zip, putting that new zip in your moodle root, and unzipping. As o mentioned earlier, the new zip does not include adminlib.php so install won't risk cratering your existing file.
That being said, keep an eye on the SEE thread in math forum for a "production" version of SEE as it will knock your socks off and start you on transition to tinyMCE!
Re: Moodle 1.9.5+ HTML editor disappeared
Re: Moodle 1.9.5+ HTML editor disappeared
Anyway one very common reason for disappeared editor is any (extra) code that either breaks javascripts/html code or some part of code is missing and moodle/editor does not know what to do so you get only a textarea instead of editor... I suspect this is the reason for missing editor in Brian's case.
Re: Moodle 1.9.5+ HTML editor disappeared
Perhaps your site has been hacked. I have the same problem in two moodle sites, and I am still looking for the solution.
Moodle 1.9
Gabriel
Re: Moodle 1.9.5+ HTML editor disappeared

Re: Moodle 1.9.5+ HTML editor disappeared
I have the same problem, i am using the 1.9.5 release.
The problem is: same times the Html Editor apperars and in another moment disapperars.
I tried to use Firefox, IE8, Chrome, Safari, and the problem is the same.
There no problem on my config.php and other configurations.
Somebody can help me?
Thanks.
Re: Moodle 1.9.5+ HTML editor disappeared
Same problem here. I'm using a PC w/ both Firefox and IE7&8.
Very frustrating!
Re: Moodle 1.9.5+ HTML editor disappeared
Re: Moodle 1.9.5+ HTML editor disappeared
Update: Turning off Ajax helps but I'm still intermittently getting the problem. (I use both IE7 and Firefox on a Windows XP machine )
Emptying the cache seems to be clearing the problem up. Whenever the editor disappears, I empty cache and refrehs the browser and the editor shows up-usually. Sometimes it takes a few refreshes.
BTW, copy and save your current work in wordpad because refresh dumps what you have't saved.
Re: Moodle 1.9.5+ HTML editor disappeared
Re: Moodle 1.9.5+ HTML editor disappeared
Re: Moodle 1.9.5+ HTML editor disappeared
PS - go to your moodle site, and view the source with with either firefox or IE, and make sure nothing weird shows up.