New bug with fullscreen editor on IE6?

New bug with fullscreen editor on IE6?

por Martin Dougiamas -
Número de respostas: 42
Foto de Core developers Foto de Documentation writers Foto de Moodle HQ Foto de Particularly helpful Moodlers Foto de Plugin developers Foto de Testers

Can someone else please try and verify this?

I don't use IE6 very much so I don't know how new this is ...

Using IE6, on this site (it's running the latest code), does Fullscreen mode work for you in this editor?  I'm getting the following Javascript warning:

Line 586, Char 2
Error: 'HTMLArea.I18N.msg' is null or not an object
Code: 0
URL: http://moodle.org/lib/editor/popups/fullscreen.php?id=10

And the resulting window is unusable.  All this works great on Mozilla.

Janne, I'll send you cash!!    (Bug 1044)

Em resposta a 'Martin Dougiamas'

Re: New bug with fullscreen editor on IE6?

por Bryan Williams -

Martin, this message was created using full screen editor in IE6. No problem! Could you have a problem with Java Virtual runtime on your computer?  If you are using that crappy Microsoft VM instead of Sun, look into this.

Bryan

Em resposta a 'Bryan Williams'

Re: New bug with fullscreen editor on IE6?

por Martin Dougiamas -
Foto de Core developers Foto de Documentation writers Foto de Moodle HQ Foto de Particularly helpful Moodlers Foto de Plugin developers Foto de Testers
The editor is not Java though ... Javascript (despite the name) is completely unrelated.

Hmm ... that's intriguing.  I also have a user who swears that the colour window is actually CRASHING her browser.  Sigh.
Em resposta a 'Martin Dougiamas'

Re: New bug with fullscreen editor on IE6?

por Zbigniew Fiedorowicz -

This message was also created in fullscreen mode in IE6. With script error notification off, things work smoothly. With notification turned on, every keystroke produces the error message:

Line: 47
Char:3
Error: Object required
Code: 0
URL: http://moodle/lib/editor/popups/fullscreen.php?id=

Em resposta a 'Martin Dougiamas'

Re: New bug with fullscreen editor on IE6?

por Jean-Pierre Pawlak -

Same problem...

NAME = Regel: 586
Teken: 2
Fout: 'HTMLArea.I18N.msg' is leeg of geen object
Code: 0
URL:
http://moodle.org/lib/editor/popups/fullscreen.php?id=

Em resposta a 'Jean-Pierre Pawlak'

Re: New bug with fullscreen editor on IE6?

por Dr. Ali Abureesh -
Foto de Core developers Foto de Translators

This is what I get by clicking the links. I use IE 6.

Anexo editor.jpg
Em resposta a 'Jean-Pierre Pawlak'

Re: New bug with fullscreen editor on IE6?

por Janne Mikkonen -
fullscreen's _CloseOnEsc doesn't seem to work? Or does anyone able to close fullscreen on Esc key?

If not we can surely uncomment following lines from fullscreen.php

document.bodyxxx _CloseOnEsc;
editor._doc.bodyxxx _CloseOnEsc;
editor._textAreaxxx _CloseOnEsc;

- Janne -
Em resposta a 'Janne Mikkonen'

Re: New bug with fullscreen editor on IE6?

por Martin Dougiamas -
Foto de Core developers Foto de Documentation writers Foto de Moodle HQ Foto de Particularly helpful Moodlers Foto de Plugin developers Foto de Testers

Janne, now I understand what you're saying here.  sorriso

Yes, let's kill this functionality totally and delete that function and all calls to it.

In fact I've just done this and the problem is now gone.  sorriso

Em resposta a 'Martin Dougiamas'

Re: New bug with fullscreen editor on IE6?

por Janne Mikkonen -

I do not have this error message. I've tried both Finnish and English versions on IE 6.

The error it self have something to do with those language files (which should be en.php all the time regardless what language we use in moodle).

I could turn all HTMLArea.I18N.msg's to regular alerts or popups???

Em resposta a 'Janne Mikkonen'

Re: New bug with fullscreen editor on IE6?

por Janne Mikkonen -

Could you try put this at the top of en.php (as in htmlarea.php)

<?php
 include("../../../config.php");
 $lastmodified = filemtime("en.php");
    $lifetime = 1800;
 
    header("Content-type: application/x-javascript");  // Correct MIME type
    header("Last-Modified: " . gmdate("D, d M Y H:i:s", lastmodified) . " GMT");
    header("Expires: " . gmdate("D, d M Y H:i:s", time() + $lifetime) . " GMT");
    header("Cache-control: max_age = $lifetime");
    header("Pragma: ");
 
?>
// I18N constants

// LANG: "en", ENCODING: UTF-8 | ISO-8859-1

I don't know does this help at all but there has been some weird HTMLArea.I18N errors before...

Em resposta a 'Janne Mikkonen'

Re: New bug with fullscreen editor on IE6?

por Zbigniew Fiedorowicz -
This makes things worse.  I get the error "HTMLArea.I18N.tooltips is null or not an object", and the editor refuses to load.
Em resposta a 'Zbigniew Fiedorowicz'

Re: New bug with fullscreen editor on IE6?

por Janne Mikkonen -

The php header section must be before any javascript, starting line 0.

<?php
     include ....
     headers....
?>
// comments...
javascript stuff.

Em resposta a 'Janne Mikkonen'

Re: New bug with fullscreen editor on IE6?

por Martin Dougiamas -
Foto de Core developers Foto de Documentation writers Foto de Moodle HQ Foto de Particularly helpful Moodlers Foto de Plugin developers Foto de Testers

Testing it on mozilla in fullmode ... works fine.

Testing it on IE6 now ... works better now! Good call, Janne.  With display errors off I can type normally, but with errors on I still get the same thing Zig mentioned earlier where the error dialog comes up each time I press a key.

What I don't get is how inconsistent these error reports are.  And how slow the editor is at coming up in IE.  And how the anchor tag that brings you back to your post in the discussion doesn't quite take you all the way. 

Have I mentioned lately that IE is a pile of crap?  piscar o olho   I may start recommending Firefox on the Moodle.org home page.

Em resposta a 'Martin Dougiamas'

Re: New bug with fullscreen editor on IE6?

por Andy Diament -

I'm very keen to use solve this problem!!!

I've been using firefox happily with this problem, but came across a different moodle/firefox issue - when I tried to paste text into the html editor (in a new lesson), firefox gave a security error, can't paste into mozilla with unsuitable scripts; the bug fix on the mozilla site failed to work (at least partly because it was aimed at win nt not xp!)

Any comments?

Cheers, Andy D

Em resposta a 'Martin Dougiamas'

Re: New bug with fullscreen editor on IE6?

por Herbert Keijers -
Andy I think you are right !
FireFox has a problem with copy/paste ... inside moodle
  • I followed the instructions on the firefox pages about creating/adapting the user.js file within the profile directory. (There is also a XP explanation)
    No success ...
  • Then I searched the bug database of firefox and there were entries of the problem.
    I run  firefox 0.8.0+
Do other moodlers experiance the same problem ?
Anexo copypast.png
Em resposta a 'Herbert Keijers'

Re: New bug with fullscreen editor on IE6?

por Zbigniew Fiedorowicz -
You have to make adjustments in the instructions given at mozilla.org
  1. In my case, Mozilla 1.5 for Windows, the preferences file is named prefs.js not user.js.
  2. The line
user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org");

should be replaced by

user_pref("capability.policy.allowclipboard.sites", "http://moodle.org");

and such a line should be added for every moodle site you want to use.

Em resposta a 'Zbigniew Fiedorowicz'

Re: New bug with fullscreen editor on IE6?

por John Gone -
Well, that was a short fix. I tried to add my own site to the pref.js file but now cut n paste works for no site. Way too much screwing around on this one. Bummer... has anyone had success doing this with Mozilla 1.7 Alpha? I also just lost all my e-mail, MAJOR BUMMERangry
Profile problem in Mozilla, nothing at all to do with Moodle.

This is kind of a useless feature anyway because all you have to do is use the html button and paste the offending code. This code can't be pasted directly without editing your pref.js file but can be pasted at will using html.

Google
Em resposta a 'John Gone'

Re: New bug with fullscreen editor on IE6?

por Zbigniew Fiedorowicz -
Unfortunately there seems to be no documentation anywhere on how to enable copy/paste in Mozilla for more than 1 site.  I've tried just about anything I could think of, and nothing worked. Janne, do you know the secret?

Em resposta a 'Zbigniew Fiedorowicz'

Re: New bug with fullscreen editor on IE6?

por Janne Mikkonen -
Janne, do you know the secret?

Yes I did crack it? The site list must be seperated by space!
eg:
user_pref("capability.policy.allowclipboard.sites", "http://moodle.org http://yoursite.com http://mysite.net");

I'm using user.js file and it works ok.

- Janne -
Em resposta a 'Janne Mikkonen'

Re: New bug with fullscreen editor on IE6?

por John Gone -
Thanks Janne, unfortunately this doesn't work for me on:
XP ; Mozilla 1.7 Alpha

I'm going to un-install 1.7 and try with 1.6 although I couldn't make that work yesterday.

Thanks for all the hard work Janne, this editor is really great!
Em resposta a 'John Gone'

Re: New bug with fullscreen editor on IE6?

por John Gone -
Ahhh... got my e-mail back and I'm able to cut-n-paste at my own site but not here, couldn't get Mozilla to take two sites even after trying about a million different things. Now, I'm kind of at a loss to see the value of the security attempt in Mozilla anyway. Here's why.
If you paste code into the rich text editor it gets changed anyway. The tags are altered to html and the code doesn't execute. But, if you simply switch the editor to text mode and paste the code it works of course. Examples below.

This is the result of pasting using text mode, search box isn't visible but some functionality.
Google
This is the output from my site after pasting the code in. Code looks fine and isn't changed but it also doesn't execute.

<!-- Search Google -->
<center>
<form action="http://www.google.com/search" method="get">
<table bgcolor="#ffffff"><tbody><tr><td>
<a href="http://www.google.com/" target="_blank">
<img alt="Google" src="http://www.google.com/logos/Logo_40wht.gif" align="middle" border="0" /></a>
<input maxlength="255" size="25" name="q" type="text" />
<input value="Google Search" name="btnG" type="submit" />
</td></tr></tbody></table>
</form>
</center>
<!-- Search Google -->

What's the point of the security attempt? I aint the brightest guy around but this doesn't make much sense to me.
Em resposta a 'John Gone'

Re: New bug with fullscreen editor on IE6?

por John Gone -
This is what I get in my own site with cut-n-paste working, fully functioning code
Anexo googlesearchbar.JPG
Em resposta a 'John Gone'

Re: New bug with fullscreen editor on IE6?

por wendy lee -

Hi guys,

I am setting up a Quiz for our group.  As an admin, I can take the test fine, but as soon as I login as a student to take the test, IE 6.0 keeps popping up a dialog box that says, " Do you want this page to paste information to clipboard"?  Please see the attachement that has the screen shot.  Any ideas on how I can get rid of the dialog box?

Thank you all so much for your help,

Wendy

Em resposta a 'Herbert Keijers'

Re: New bug with fullscreen editor on IE6?

por Zbigniew Fiedorowicz -
On my WinXP system, the appropriate preferences file for Firefox is:
C:\Documents and Settings\zig\Application Data\Phoenix\Profiles\default\e15efh0l.slt\prefs.js
Em resposta a 'Zbigniew Fiedorowicz'

Re: New bug with fullscreen editor on IE6?

por Herbert Keijers -
I made a user.js file in the same dir. <Ctrl>+c and <Ctrl>+v doesn't work but I can copy/past from buttons in the firefox navigation bar.
Mayby there exits an extension in firefox to make the shortcuts work ...
Em resposta a 'Herbert Keijers'

Re: New bug with fullscreen editor on IE6?

por Herbert Keijers -
Hi John, I'm on XP for the moment
The shortkeys <CTRL>+c and <CTRL>+v are not working but <CTRL>+x is ...
strange but true ...
Em resposta a 'Herbert Keijers'

Re: New bug with fullscreen editor on IE6?

por Paul Norrod -

Herbert, I am having the same problem as you with FireFox .8 - I can copy and paste with the browser menu items but I can't use ctrl+c or ctrl+v from the keyboard or I get the message box.  I was looking through some of the documentation for FireFox and I found this at http://texturizer.net/firefox/edit.html#user :


 

The Profile Folder

Before the configuration files are presented, you should know how to find your "profile folder", as it is commonly called. The profile folder is where Firefox saves all your settings and refers to a location on your hard drive.

On Windows XP/2000, the path is usually %AppData%\Phoenix\Profiles\default\xxxxxxxx.slt\, where xxxxxxxx is a random string of 8 characters. Just browse to C:\Documents and Settings\[User Name]\Application Data\Phoenix\Profiles\ and the rest should be obvious.

On Windows 95/98/Me, the path is usually C:\WINDOWS\Application Data\Phoenix\Profiles\default\xxxxxxxx.slt\

On Linux, the path is usually ~/.phoenix/default/xxxxxxxx.slt.

On MacOS X, the path is usually ~/Library/Phoenix/Profiles/default/xxxxxxxx.slt.

Note: Firefox is capable of handling more than one user and thus, more than one profile. The path examples above refers to the default profile that is automatically created when you start Firefox for the first time. You can manage any number of profiles by using the Profile Manager.

%AppData% is a shorthand for the Application Data path on Windows 2000/XP. To use it, click Start > Run..., enter %AppData% and press Enter. You will be taken to the "real" folder, which is normally C:\Documents and Settings\[User Name]\Application Data.

user.js

This is the main preferences file for Firefox and is located in your profile folder. The file does not exist by default, so you need to create it before you can start adding your preferences.

Windows users: If you know how to create a file, just skip this section. Before you can create the file, you must make sure that you can see the file type extensions in Windows. Start Explorer (just click on the My Computer icon on your desktop) and select File > Tools > Folder Options.... Click the View tab and uncheck the Hide extensions for known file types option. Now, go to your profile folder and select File > New > Text Document. The default name New Text Document.txt should be displayed. Change the name to user.js (click Yes on the file type warning that appears).

Linux users: I assume that you know how to create a file if you're running Linux. Just create user.js in your profile folder.

It's also possible to edit the preferences normally stored in user.js by entering about:config in the address bar and press Enter. You will see a list of all available preferences in Firefox (many of them are derived from Mozilla and are not used but not yet removed). Double-click on a preference to change its value. The changes you make here will be immediately stored in prefs.js, which is a file automatically generated by Firefox.


If I understood what I read, then if we type about:config into the FireFox address area, we should see all of the config settings, including the ones from prefs.js and user.js.  I did that, but there is no listing of any of the "capability.policy" prefs in our user.js and/or prefs.js files nor is there anything related to "allowclipboard."  This makes me wonder if the settings we are trying to include are actually being included when the browser runs???  I am sort of lost in understanding FireFox and this goofy "security" feature, but I do know that when grading, I usually have "template" in the clipboard of feedback that I ctrl+v into each feedback window and modify for each student.  To have to grab the mouse to go up to the edit menu for each student would be rather tedious.

If anyone else digs up anything on this, I and I am sure many others would be very appreciative.  Thanks!

Em resposta a 'Paul Norrod'

Re: New bug with fullscreen editor on IE6?

por John Gone -
This is definitely a pain especially when someone, in our case Janne and others, has gone to the trouble of providing a great text editor.

This is what I've done to fix for XP; Firefox 0.8; (default user profile)

1. Shut down browser
2. Find "prefs.js" I found it at:
-> My Computer -> C: -> Documents & Settings -> your Windows profile -> Application Data -> Phoenix -> Profiles -> Default -> *****.slt -> prefs.js
3. Make a backup copy of prefs.js and store in a safe place
4. Add these lines to the bottom of the prefs.js file

user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");
user_pref("capability.policy.allowclipboard.sites", "http://moodle.org");
user_pref("capability.policy.policynames", "allowclipboard");

4. Save this file
5. Open Firefox and try to use copy and paste. If this doesn't work check your prefs.js file to confirm the changes you've just made. If not, well, try try again...

NOTES:
Browser must be closed before making changes as browser will save prefs.js on shutdown and your changes will be neutralized.

Windows uses prefs.js

I haven't been able to add multiple sites to the "allowclipboardsites" so if there's a way please share your method, thank you.

If anyone can add further to these instructions please do as this can be a very frustrating procedure and concise, accurate documentation will be much appreciated by many.
Em resposta a 'John Gone'

Re: New bug with fullscreen editor on IE6?

por Les Lusk -
The good news - John's instructions are very good. I finally was able to find where the correct prefs.js file was (it is not at all where Mozilla say's it should be in an XP system).

The bad news - I still can't get it to work. The correct statements are there (even after opening and closing the browser), but I can't paste here or on my Moodle site.  I also tried user.js, it didn't work either...
Em resposta a 'Les Lusk'

Re: New bug with fullscreen editor on IE6?

por John Gone -
OK. Now for the desperation moves. Re-open your prefs.js and make sure hat the changes were saved as requested. They probably were but this is a very screwy setup so just to be sure. If all is OK then try doing a re-boot of your computer. Yes, I know, this shouldn't be necessary but this is a process of elimination here. After a re-boot check to be sure that the changes did take effect and try again. Thanks for the feedback, maybe we can collectively put together some decent documentation on this. I screwed around with this for a couple of hours before I got it right although I'm unable to use more copy and paste for more than one site.

Les, maybe just to get this working please try and include only one site for "allowclipboardsites" and after it's working we can try figuring out the add other sites part.
Em resposta a 'John Gone'

Re: New bug with fullscreen editor on IE6?

por Herbert Keijers -
Hi guys,
Thanks for all feedback. I know now what went "wrong", I tell my story:
Firefox comes afther the bird, and I had installed firebird on the system. In order to keep firebird I "installed" the zip file of firefox in another place. Since they both use the same "Phoenix" profile I could easily go back to the bird and even use both browsers with the same profile.

I'm now on a "clean" installed XP, with firefox, and copy/past works with the shortcut-keys after adapting the prefs.js file discribed above.
Will be looking forward to the release of a fire**** 1.0  ...
Em resposta a 'John Gone'

Re: New bug with fullscreen editor on IE6?

por Les Lusk -
Well, the reboot worked and I can now paste to one site.  I've still not been successful with multiple sites.  (who would have ever thought of rebooting a Microsoft machine to get something to work!)  Thanks for the assistance...
Em resposta a 'John Gone'

Re: New bug with fullscreen editor on IE6?

por Paul Norrod -

 John, your suggestion to only have one site in the "allowclipboardsites" and a reboot worked for me - I can now use my ctrl+c and ctrl+v keystrokes.  Thanks!  Now if we can figure out how to allow multiple sites .....

Em resposta a 'Paul Norrod'

Re: New bug with fullscreen editor on IE6?

por John Gone -
Janne answered above that the following would work but I haven't had any luck with this:

user_pref("capability.policy.allowclipboard.sites", "http://moodle.org http://yoursite.com http://mysite.net");

Anyone else get that method working?


I've started a new thread at: Mozilla, Firefox and cut 'n' paste issue

to try and document this problem.



Em resposta a 'Paul Norrod'

Re: New bug with fullscreen editor on IE6?

por Zbigniew Fiedorowicz -
Em resposta a 'Zbigniew Fiedorowicz'

Re: New bug with fullscreen editor on IE6?

por John Gone -
I know ( that's why I mentioned that in my post) but it wipes out my prefs.js file when I do it. In fact I just tried it again and it wiped it out again... It works for him and it works for you but it doesn't work for me or some others, that's why I'm trying to figure it out.
Em resposta a 'John Gone'

Re: New bug with fullscreen editor on IE6?

por suita reha -
Hello everyone, I have the same problem with paste in the moodle text area. But I can paste here in the moodle.org. I made all that is written in the posts here but it does'nt work for my moodle. I use Win XP , Mozilla Firefox (1.0 PR). When I push the <> icon and change to Text-Modus then it works but not when I use the normal WYSIWYG-Modus. 
Hope you can understand me. 
Have you came to a final solution concerning this problem????

Suita