Added new information to the HTMLArea popup error when trying to use Paste

and made it translatable.
This commit is contained in:
moodler
2005-05-08 14:56:34 +00:00
parent 9413bb375e
commit a09e99ea1c
2 changed files with 3 additions and 6 deletions
+1
View File
@@ -28,6 +28,7 @@ $string['createanchor'] = 'Create anchor';
$string['createfolder'] = 'Create folder';
$string['createlink'] = 'Insert Web Link';
$string['cut'] = 'Cut selection';
$string['cutpastemozilla'] = 'Unfortunately, you can not currently use normal keyboard shortcuts (or even the Paste button) for Pasting text into this online editor. This is because of a security feature that is built in to some versions of Mozilla and Firefox browsers.<br /><br />There are three known workarounds you can try: <br /> (1) Instead of CTRL-v, use SHIFT-Insert <br /> (2) Use the Edit->Paste menu in your browser <br /> (3) Change the preferences in your browser by editing the user.js file. <br /><br />Click the OK button below for more help, or Cancel to return to the editor';
$string['delete'] = 'Delete';
$string['filebrowser'] = 'File Browser';
$string['forecolor'] = 'Font Color';
+2 -6
View File
@@ -1882,12 +1882,8 @@ HTMLArea.prototype.execCommand = function(cmdID, UI, param) {
}
} catch (e) {
if (HTMLArea.is_gecko) {
if (confirm("Unprivileged scripts cannot access Cut/Copy/Paste programatically " +
"for security reasons. Click OK to see a technical note at mozilla.org " +
"which shows you how to allow a script to access the clipboard." +
"\n\nFor more information HOW TO enable Cut/Copy/Paste see moodle -discussion: " +
"\nhttp://moodle.org/mod/forum/discuss.php?d=5880"))
window.open("http://mozilla.org/editor/midasdemo/securityprefs.html");
if (confirm("<?php echo str_replace('<br />', '\\n', get_string('cutpastemozilla','editor')) ?>"))
window.open("http://moodle.org/mozillahelp");
}
}
break;