mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'MDL-55461_atto_equation' of git://github.com/davosmith/moodle
This commit is contained in:
commit
1975dcf25c
@ -450,13 +450,15 @@ Y.namespace('M.atto_equation').Button = Y.Base.create('button', Y.M.editor_atto.
|
||||
while (equation.charAt(currentPos) === '\\' && currentPos >= 0) {
|
||||
currentPos -= 1;
|
||||
}
|
||||
isChar = /[a-zA-Z\{\}]/;
|
||||
isChar = /[a-zA-Z\{]/;
|
||||
if (currentPos !== 0) {
|
||||
// Now match to the end of the line.
|
||||
while (isChar.test(equation.charAt(currentPos)) &&
|
||||
currentPos < equation.length &&
|
||||
isChar.test(equation.charAt(currentPos - 1))) {
|
||||
currentPos += 1;
|
||||
if (equation.charAt(currentPos - 1) != '{') {
|
||||
// Now match to the end of the line.
|
||||
while (isChar.test(equation.charAt(currentPos)) &&
|
||||
currentPos < equation.length &&
|
||||
isChar.test(equation.charAt(currentPos - 1))) {
|
||||
currentPos += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
// Save the cursor position - for insertion from the library.
|
||||
|
File diff suppressed because one or more lines are too long
@ -450,13 +450,15 @@ Y.namespace('M.atto_equation').Button = Y.Base.create('button', Y.M.editor_atto.
|
||||
while (equation.charAt(currentPos) === '\\' && currentPos >= 0) {
|
||||
currentPos -= 1;
|
||||
}
|
||||
isChar = /[a-zA-Z\{\}]/;
|
||||
isChar = /[a-zA-Z\{]/;
|
||||
if (currentPos !== 0) {
|
||||
// Now match to the end of the line.
|
||||
while (isChar.test(equation.charAt(currentPos)) &&
|
||||
currentPos < equation.length &&
|
||||
isChar.test(equation.charAt(currentPos - 1))) {
|
||||
currentPos += 1;
|
||||
if (equation.charAt(currentPos - 1) != '{') {
|
||||
// Now match to the end of the line.
|
||||
while (isChar.test(equation.charAt(currentPos)) &&
|
||||
currentPos < equation.length &&
|
||||
isChar.test(equation.charAt(currentPos - 1))) {
|
||||
currentPos += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
// Save the cursor position - for insertion from the library.
|
||||
|
@ -448,13 +448,15 @@ Y.namespace('M.atto_equation').Button = Y.Base.create('button', Y.M.editor_atto.
|
||||
while (equation.charAt(currentPos) === '\\' && currentPos >= 0) {
|
||||
currentPos -= 1;
|
||||
}
|
||||
isChar = /[a-zA-Z\{\}]/;
|
||||
isChar = /[a-zA-Z\{]/;
|
||||
if (currentPos !== 0) {
|
||||
// Now match to the end of the line.
|
||||
while (isChar.test(equation.charAt(currentPos)) &&
|
||||
currentPos < equation.length &&
|
||||
isChar.test(equation.charAt(currentPos - 1))) {
|
||||
currentPos += 1;
|
||||
if (equation.charAt(currentPos - 1) != '{') {
|
||||
// Now match to the end of the line.
|
||||
while (isChar.test(equation.charAt(currentPos)) &&
|
||||
currentPos < equation.length &&
|
||||
isChar.test(equation.charAt(currentPos - 1))) {
|
||||
currentPos += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
// Save the cursor position - for insertion from the library.
|
||||
|
Loading…
x
Reference in New Issue
Block a user