Fixing cut 'n' paste mozilla confirm line again...

This commit is contained in:
julmis
2005-06-11 11:01:03 +00:00
parent 0f49980a0e
commit e0675c474f
+6 -23
View File
@@ -1882,31 +1882,14 @@ HTMLArea.prototype.execCommand = function(cmdID, UI, param) {
}
} catch (e) {
if (HTMLArea.is_gecko) {
<?php
$strgecko = get_string('cutpastemozilla','editor');
$lines = explode("<br />", $strgecko);
if (confirm("<?php
$strmoz = get_string('cutpastemozilla','editor');
$strmoz = preg_replace("/[\n|\r]+/", "", $strmoz);
$strmoz = str_replace('<br />', '\\n', $strmoz);
echo "var geckonotice = ";
$cnt = count($lines);
$i = 2;
foreach ($lines as $line) {
echo addslashes($strmoz);
if (empty($line)) {
continue;
}
$line = addslashes(trim($line));
if ($cnt > $i) {
echo "\"$line\\n\" + \n";
} else {
echo "\"$line\";\n";
}
$i++;
}
?>
if (confirm(geckonotice))
?>"))
window.open("http://moodle.org/mozillahelp");
}
}