I have lost my html editor in a recent 1.4.4+.
I do not have and carriage returns at the end of config.php
The HTML editor is allowed in the HTML editor settings page
In the Database, mdl_config.htmleditor.value = 1
But looking at the source of forum post, or activity setup pages, the htmlarea javascript is not being added the bottom of pages with a textarea. Javascript, such as that of the timer is working however.
I have hacked a few files as I usually do, but otherwise it is a fresh install of 1.4.4 + (2004083140). This is the first time I have experienced the lack of a HTML editor.
I am probably doing something simple wrong,
Timothy
Thanks very much Zbig,
I am sure you are right, and that is the answer. Your script should be in Moodle ("press this button to check your onfig.php for extraneous characters").
There does not seem to be anything in my config.php's (thanks)
Your wonderful script does not seem to allow me to check the other files that I hacked. How does it work? Can I do it?
Timothy
Whenever I hack I leave a copy of the original file with a prefix. I went through the php files that I have hacked replacing the hacked file with the original but it did not seem to make any difference. Perhaps there is a cache problem?
Also I presume that any file that is causing this problem would have to be one which is acessed globally such as weblib.php (which I have hacked) rather than for instance mod/forum/post.php.
The problem persists with the standard theme, and irespective of the language setting.
I will try reuploading moodle on Monday.
Timothy
Is anyone elses lacking a HTML editor?
Timothy
I found out that my lack of a html editor was due to my stupid mistake.
Somehow my user preferences were set to not use the html editor (mdle_user.htmleditor = 0). When I used SQL, UPDATE mdl_user SET htmleditor =1, then all the users then logged in can use the htmleditor.
The reason why the preference for the htmleditor was turned off is because I was using a hacked version of user/edit.html, with some of the input fields commented out.
But this is surprising. I have removed parts of edit.html before (last term) and when I did the values resorted, I think, to their default values in mdl_user, which is "1." But for somereason it is being set to zero now. Has somethign changed? This should be in a "user" forum.
I will try
<INPUT TYPE=hidden htmleditor="1">
in the edit.html file.
Timothy
When I remove the code to allow users to set whether they want to use the htmleditor or not, for reasons unknown to me the setting (htmleditor) is being set to not use the editor (0).
In the post above, I said I would try using
<INPUT TYPE=hidden htmleditor="1">
in user/edit.hml
But the correct html is
<INPUT TYPE=hidden NAME=htmleditor VALUE="1">
This ensures that everyone gets the htmleditor.
Timothy