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

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

- Ville K の投稿
返信数: 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.
Ville K への返信

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

- Martin Dougiamas の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers
The problem is in Firefox, not Moodle. Note that the Edit menu still works by default.
Martin Dougiamas への返信

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

- 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).
Ville K への返信

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

- Martin Dougiamas の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 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!)
Martin Dougiamas への返信

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

- 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?
Gustav W Delius への返信

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

- Martin Dougiamas の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers
That popup message is Firefox too ... ベー Or do you mean http://moodle.org/help.php?file=richtext.html in which case I agree!
Martin Dougiamas への返信

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

- Randall Kindley の投稿
Try shift insert instead of cntl v
Randall Kindley への返信

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

- Gyorgy Konczei の投稿
Thank you Randall! You have solved my very old problem. I appreciate it.
G
Gyorgy Konczei への返信

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

- Chardelle Busch の投稿
画像 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.

Martin Dougiamas への返信

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

- 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.
Gustav W Delius への返信

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

- Martin Dougiamas の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 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).
Martin Dougiamas への返信

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

- 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
Hiroto Kagotani への返信

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

- Martin Dougiamas の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers
Thanks!  Anyone else?  What's going on here?
Martin Dougiamas への返信

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

- 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).
Hiroto Kagotani への返信

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

- Gustav W Delius の投稿
Well, Ctrl-V does NOT work for me in Firefox 1.0.3 on Windows XP. But Shift-Insert does.
Gustav W Delius への返信

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

- 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.
Gustav W Delius への返信

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

- koen roggemans の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Translators
Firefox 1.03 on Windows 2000, never got user.js to work
ctrl-v doesn't work
shift-ins does the trick.
Thanks
koen roggemans への返信

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

- 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.
Josep M. Fontana への返信

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

- 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...
Josep M. Fontana への返信

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

- Martin Dougiamas の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 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.


Martin Dougiamas への返信

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

- 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.
Derek Collins への返信

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

- koen roggemans の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 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.
Martin Dougiamas への返信

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

- Martin Dougiamas の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 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");