mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Merge branch 'MDL-47002-int-master' of git://github.com/merrill-oakland/moodle
This commit is contained in:
commit
54c40ffe75
@ -1329,8 +1329,8 @@ EditorClean.prototype = {
|
||||
{regex: /(<[^>]*?class\s*?=\s*?"[^>"]*?)(?:[\s]*Apple-[_a-zA-Z0-9\-]*)+/gi, replace: "$1"},
|
||||
// Remove OLE_LINK# anchors that may litter the code.
|
||||
{regex: /<a [^>]*?name\s*?=\s*?"OLE_LINK\d*?"[^>]*?>\s*?<\/a>/gi, replace: ""},
|
||||
// Remove empty spans.
|
||||
{regex: /<span[^>]*>( |\s)*<\/span>/gi, replace: ""}
|
||||
// Remove empty spans, but not ones from Rangy.
|
||||
{regex: /<span(?![^>]*?rangySelectionBoundary[^>]*?)[^>]*>( |\s)*<\/span>/gi, replace: ""}
|
||||
];
|
||||
|
||||
// Apply the rules.
|
||||
|
File diff suppressed because one or more lines are too long
@ -1318,8 +1318,8 @@ EditorClean.prototype = {
|
||||
{regex: /(<[^>]*?class\s*?=\s*?"[^>"]*?)(?:[\s]*Apple-[_a-zA-Z0-9\-]*)+/gi, replace: "$1"},
|
||||
// Remove OLE_LINK# anchors that may litter the code.
|
||||
{regex: /<a [^>]*?name\s*?=\s*?"OLE_LINK\d*?"[^>]*?>\s*?<\/a>/gi, replace: ""},
|
||||
// Remove empty spans.
|
||||
{regex: /<span[^>]*>( |\s)*<\/span>/gi, replace: ""}
|
||||
// Remove empty spans, but not ones from Rangy.
|
||||
{regex: /<span(?![^>]*?rangySelectionBoundary[^>]*?)[^>]*>( |\s)*<\/span>/gi, replace: ""}
|
||||
];
|
||||
|
||||
// Apply the rules.
|
||||
|
4
lib/editor/atto/yui/src/editor/js/clean.js
vendored
4
lib/editor/atto/yui/src/editor/js/clean.js
vendored
@ -304,8 +304,8 @@ EditorClean.prototype = {
|
||||
{regex: /(<[^>]*?class\s*?=\s*?"[^>"]*?)(?:[\s]*Apple-[_a-zA-Z0-9\-]*)+/gi, replace: "$1"},
|
||||
// Remove OLE_LINK# anchors that may litter the code.
|
||||
{regex: /<a [^>]*?name\s*?=\s*?"OLE_LINK\d*?"[^>]*?>\s*?<\/a>/gi, replace: ""},
|
||||
// Remove empty spans.
|
||||
{regex: /<span[^>]*>( |\s)*<\/span>/gi, replace: ""}
|
||||
// Remove empty spans, but not ones from Rangy.
|
||||
{regex: /<span(?![^>]*?rangySelectionBoundary[^>]*?)[^>]*>( |\s)*<\/span>/gi, replace: ""}
|
||||
];
|
||||
|
||||
// Apply the rules.
|
||||
|
Loading…
x
Reference in New Issue
Block a user