Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merging from MOODLE_15_STABLE

- cut 'n' paste fix
  • Loading branch information...
commit 86d5a066ae6bd8657d1ff2b0c13d82dfbf1a354a 1 parent 70e3142
julmis authored
Showing with 6 additions and 23 deletions.
  1. +6 −23 lib/editor/htmlarea.php
View
29 lib/editor/htmlarea.php
@@ -1882,31 +1882,14 @@ function getMozSelection(txtarea) {
}
} 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");
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.