Permalink
Browse files

Merging from MOODLE_15_STABLE

  • Loading branch information...
julmis
julmis committed Jun 10, 2005
1 parent fb65934 commit 5c9cf710c63a28dbd08898ebdb0657675c4264a4
Showing with 25 additions and 1 deletion.
  1. +25 −1 lib/editor/htmlarea.php
View
@@ -1882,7 +1882,31 @@ function getMozSelection(txtarea) {
}
} catch (e) {
if (HTMLArea.is_gecko) {
if (confirm("<?php echo str_replace('<br />', '\\n', get_string('cutpastemozilla','editor')) ?>"))
<?php
$strgecko = get_string('cutpastemozilla','editor');
$lines = explode("<br />", $strgecko);
echo "var geckonotice = ";
$cnt = count($lines);
$i = 2;
foreach ($lines as $line) {
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");
}
}

0 comments on commit 5c9cf71

Please sign in to comment.