diff -ruN moodle/lang/en_utf8/editor.php public_html/lang/en_utf8/editor.php
--- moodle/lang/en_utf8/editor.php 2006-11-03 20:31:17.000000000 +0000
+++ public_html/lang/en_utf8/editor.php 2006-11-03 20:47:23.000000000 +0000
@@ -31,6 +31,7 @@
$string['cut'] = 'Cut selection';
$string['cutpastemozilla'] = 'Unfortunately, you cannot 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 into some versions of Mozilla and Firefox browsers.
There are three known workarounds you can try:
(1) Instead of CTRL-v, use SHIFT-Insert
(2) Use the Edit->Paste menu in your browser
(3) Change the preferences in your browser by editing the user.js file.
Click the OK button below for more help, or Cancel to return to the editor';
$string['delete'] = 'Delete';
+$string['enterurlfirst'] = 'You have to enter an URL first';
$string['filebrowser'] = 'File Browser';
$string['findwhat'] = 'Find';
$string['fontname'] = 'Fontname';
@@ -73,6 +74,7 @@
$string['middle'] = 'Middle';
$string['minimize'] = 'Minimize editor';
$string['move'] = 'Move';
+$string['mustenterurl'] = 'You must enter the URL';
$string['nolink'] = 'Prevent automatic linking';
$string['normal'] = 'Normal';
$string['notimage'] = 'Selected file is not an image. Please select an image!';
@@ -85,6 +87,7 @@
$string['path'] = 'Path';
$string['percent'] = 'Percent';
$string['pixels'] = 'Pixels';
+$string['pleaseenteralt'] = 'Please enter the alternate text';
$string['popupeditor'] = 'Enlarge Editor';
$string['preformatted'] = 'Preformatted';
$string['preview'] = 'Preview';
diff -ruN moodle/lib/editor/htmlarea/popups/insert_image.php public_html/lib/editor/htmlarea/popups/insert_image.php
--- moodle/lib/editor/htmlarea/popups/insert_image.php 2006-11-03 20:30:57.000000000 +0000
+++ public_html/lib/editor/htmlarea/popups/insert_image.php 2006-11-03 20:47:39.000000000 +0000
@@ -42,8 +42,8 @@
function onOK() {
var required = {
- "f_url": "You must enter the URL",
- "f_alt": "Please enter the alternate text"
+ "f_url": "",
+ "f_alt": ""
};
for (var i in required) {
var el = document.getElementById(i);
@@ -81,7 +81,7 @@
var f_url = document.getElementById("f_url");
var url = f_url.value;
if (!url) {
- alert("You have to enter an URL first");
+ alert("");
f_url.focus();
return false;
}
diff -ruN moodle/lib/editor/htmlarea/popups/insert_image_std.php public_html/lib/editor/htmlarea/popups/insert_image_std.php
--- moodle/lib/editor/htmlarea/popups/insert_image_std.php 2006-11-03 20:30:57.000000000 +0000
+++ public_html/lib/editor/htmlarea/popups/insert_image_std.php 2006-11-03 20:48:10.000000000 +0000
@@ -37,8 +37,8 @@
function onOK() {
var required = {
- "f_url": "You must enter the URL",
- "f_alt": "Please enter the alternate text"
+ "f_url": "",
+ "f_alt": ""
};
for (var i in required) {
var el = document.getElementById(i);
@@ -76,7 +76,7 @@
var f_url = document.getElementById("f_url");
var url = f_url.value;
if (!url) {
- alert("You have to enter an URL first");
+ alert("");
f_url.focus();
return false;
}