Cut & Paste not working with Firefox (without editing browser)

Cut & Paste not working with Firefox (without editing browser)

by Ville K -
Number of replies: 26
Is there any way to set Moodle so that this will not an be an issue? I do not think modifying the browser is the correct answer, is there update (possibly coming?) or add-on to correct this issue? Many people in course I am involved with write answers with seperate word-procressing program, and find it annoying that they have to switch to Internet Explorer to by-pass the issue.

Secondly, I act as an assisting student to a teacher on moodle course (so I have not been involved in installing and setting up the program myself). Is there any easy way to see what version out school network is using? I have failed to find any version note.

Thank you in advance.
Average of ratings: -
In reply to Ville K

Re: Cut & Paste not working with Firefox (without editing browser)

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
The problem is in Firefox, not Moodle. Note that the Edit menu still works by default.
In reply to Martin Dougiamas

Re: Cut & Paste not working with Firefox (without editing browser)

by Ville K -
Interesting, good observation. If this is in your opinion a bug in Firefox, have they been informed? (I fear I could not explain the problem with needed technical detail why it occurs without using edit feature).
In reply to Ville K

Re: Cut & Paste not working with Firefox (without editing browser)

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
It's not a bug, it's their security feature to stop bad sites stealing data from your clipboard using Javascript.

I don't like the current implementation any more than you do - it should have an easy way to enable/disable it for each site like cookies. Once you've edited user.js everything is OK (so I forget about it).

But it annoys many people using many sites across the Internet, so I'm sure something will happen eventually. You can help by finding the issue number in their bug tracker and adding more comments there to raise attention to the matter (post the link here too!)
In reply to Martin Dougiamas

Re: Cut & Paste not working with Firefox (without editing browser)

by Gustav W Delius -
Yes, people are usually quite happy once I tell them that they can just use Edit->Paste. Should we change the popup message to point that out to users?
In reply to Gustav W Delius

Re: Cut & Paste not working with Firefox (without editing browser)

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
That popup message is Firefox too ... tongueout Or do you mean http://moodle.org/help.php?file=richtext.html in which case I agree!
In reply to Martin Dougiamas

Re: Cut & Paste not working with Firefox (without editing browser)

by Randall Kindley -
Try shift insert instead of cntl v
In reply to Randall Kindley

Re: Cut & Paste not working with Firefox (without editing browser)

by Gyorgy Konczei -
Thank you Randall! You have solved my very old problem. I appreciate it.
G
In reply to Gyorgy Konczei

Re: Cut & Paste not working with Firefox (without editing browser)

by Chardelle Busch -
Picture of Core developers
Ctrl-V does NOT work in 1.0.3 (Win-XP and I've never made any changes to any files)

Shift-Insert DOES-nice to know.

Gustav--this would be really good to add to the pop-up and maybe also that you can use Edit>Paste from the Firefox toolbar.

In reply to Martin Dougiamas

Re: Cut & Paste not working with Firefox (without editing browser)

by Gustav W Delius -
That popup message refers to a moodle discussion forum. I knew Moodle was important but still ... big grin

In reality that popup is made by htmlarea.php (see line 1898). So it would be easy for me to change the text. I like Randall's observation that Shift-Insert works. I think that is what the popup box should say first before going on to the complicated stuff.
In reply to Gustav W Delius

Re: Cut & Paste not working with Firefox (without editing browser)

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
Ah, so it is! surprise I haven't seen the dialogue in such a long time ... it might not have had the moodle link in there then.

I tried to get it to come up by closing Firefox, removing user.js and restarting the browser, but cut and paste (Ctrl-V) is still working fine for me in Firefox 1.0.3. Same for every other Moodle site I try.

Can you guys test this again yourselves with Firefox 1.0.3? Perhaps it's been fixed and this is a non-issue (gosh I hope so).
In reply to Martin Dougiamas

Re: Cut & Paste not working with Firefox (without editing browser)

by Hiroto Kagotani -
Hi,

Ctrl-V is working for me in user.js-free Firefox 1.0.3 on Windows XP, but NOT working on FreeBSD.

I need to use Edit->Paste menu to insert this string:
Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050421 Firefox/1.0.3

Hiroto
In reply to Hiroto Kagotani

Re: Cut & Paste not working with Firefox (without editing browser)

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
Thanks!  Anyone else?  What's going on here?
In reply to Martin Dougiamas

Re: Cut & Paste not working with Firefox (without editing browser)

by Derek Collins -
Same here: Cntrl-V does not work in FF on Win XP, but Shift-Insert does! Good to know (although I have edited "user.js" anyways as I am so darn used to using Cntrl-V).
In reply to Hiroto Kagotani

Re: Cut & Paste not working with Firefox (without editing browser)

by Gustav W Delius -
Well, Ctrl-V does NOT work for me in Firefox 1.0.3 on Windows XP. But Shift-Insert does.
In reply to Gustav W Delius

Re: Cut & Paste not working with Firefox (without editing browser)

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
I'm with Gustav on this:
Ctrl-V does NOT work for me in Firefox 1.0.3 on Windows XP. But Shift-Insert does.
In reply to Gustav W Delius

Re: Cut & Paste not working with Firefox (without editing browser)

by Herbert Keijers -
Sorry guys ...
It works for me. WinXP and Firefox 1.0.3
This one is put with <ctrl>+v:
Well, Ctrl-V does NOT work for me in Firefox 1.0.3 on Windows XP. But Shift-Insert does.
And the next one with <Shift>+ Insert:
Well, Ctrl-V does NOT work for me in Firefox 1.0.3 on Windows XP. But Shift-Insert does.
In reply to Gustav W Delius

Re: Cut & Paste not working with Firefox (without editing browser)

by Shane Elliott -
Picture of Core developers Picture of Plugin developers
Same setup, same result as Gustav.
In reply to Gustav W Delius

Re: Cut & Paste not working with Firefox (without editing browser)

by N Hansen -
Ditto, same setup, and works from menu as well.
In reply to Gustav W Delius

Re: Cut & Paste not working with Firefox (without editing browser)

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
Firefox 1.03 on Windows 2000, never got user.js to work
ctrl-v doesn't work
shift-ins does the trick.
Thanks
In reply to koen roggemans

Re: Cut & Paste not working with Firefox (without editing browser)

by Josep M. Fontana -
OK, I don't know how many more people you need to add a post on this thread to finally be convinced that ctrl-v definitely does NOT work with Firefox 1.03 smile but just in case you need one more, it doesn't work for me either. Thanks Randall for the tip about Shift-insert. This does work!

Josep M.
In reply to Josep M. Fontana

Re: Cut & Paste not working with Firefox (without editing browser)

by Sean S -
Just for the record, I am using 1.03 and ctrl-V is working for me without a problem. I edit the user.js back in 0.8 and haven't looked back. It is rather strange that the problem happens for some, but not for others though...
In reply to Josep M. Fontana

Re: Cut & Paste not working with Firefox (without editing browser)

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
Thanks, every one.   Unfortunately we are no closer to finding out why this works for some people and not others.

In any case, the text needs to be fixed.  I've just added a clearer explanation that mentions all three workarounds, and put it in the language packs so it can be translated (it was English-only before).

The OK button sends the user to http://moodle.org/mozillahelp, which currently redirects to the Mozilla help but we could also put a more detailed information page there in future.


In reply to Martin Dougiamas

Re: Cut & Paste not working with Firefox (without editing browser)

by Derek Collins -
Hi All,

I just wanted to point out a problem I had when editing "user.js". Perhaps this will help out some of those who have not been able to get Ctrl-V to work even after editing "user.js".

First off I should point out that I used (and would recommend using) the chromEdit extension in Firefox to edit "user.js" because this helped to ensure that I was making the change to the correct file (without having to search all over my computer to find it).

The problem that I had when editing "user.js" is that in the following line:

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

I added the full address to our moodle installation when I should have just added the root address to our moodle installation.

So, for example I did this:

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

When I should have done this:

user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org http://www.ourmoodle.com");

I also read in a related post that people were placing quotes around each address, when in fact only one set of quotes should be placed around all addresses (as you can see above). Also, you should not place commas between multiple addresses. And one more thing: after you make any changes to "user.js" (even if you are using chromEdit) you must quit Firefox and open it again before the changes will take place.

Perhaps this is obvious to some, but it definitely tripped me up when editing "user.js". I hope this will help some of you.
Average of ratings: Useful (1)
In reply to Derek Collins

Re: Cut & Paste not working with Firefox (without editing browser)

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
in fact only one set of quotes should be placed around all addresses (as you can see above). Also, you should not place commas between multiple addresses.
Thanks a lot: this one did the trick! I also tried every combination with komma's quotes etc, but a space didn't cross my mind. The italic text above is my first past with firefox using CTRL-v.
In reply to Martin Dougiamas

Re: Cut & Paste not working with Firefox (without editing browser)

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
Aha, found the reason in my case - these lines were also in prefs.js!

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.default.Clipboard.cutcopy", "AllAccess");
user_pref("capability.policy.default.Clipboard.paste", "AllAccess");
user_pref("capability.policy.policynames", "allowclipboard");