Merge branch 'wip-MDL-50795-master' of git://github.com/abgreeve/moodle
This commit is contained in:
+2
@@ -1314,6 +1314,8 @@ EditorClean.prototype = {
|
||||
{regex: /(<[^>]*?style\s*?=\s*?")([^>"]*)(")/gi, replace: function(match, group1, group2, group3) {
|
||||
// Remove MSO-blah, MSO:blah style attributes.
|
||||
group2 = group2.replace(/(?:^|;)[\s]*MSO[-:](?:&[\w]*;|[^;"])*/gi,"");
|
||||
// Remove backgroud color style.
|
||||
group2 = group2.replace(/background-color:.*?;/gi,"");
|
||||
return group1 + group2 + group3;
|
||||
}},
|
||||
// Get all class attributes so we can work on them.
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
+2
@@ -1303,6 +1303,8 @@ EditorClean.prototype = {
|
||||
{regex: /(<[^>]*?style\s*?=\s*?")([^>"]*)(")/gi, replace: function(match, group1, group2, group3) {
|
||||
// Remove MSO-blah, MSO:blah style attributes.
|
||||
group2 = group2.replace(/(?:^|;)[\s]*MSO[-:](?:&[\w]*;|[^;"])*/gi,"");
|
||||
// Remove backgroud color style.
|
||||
group2 = group2.replace(/background-color:.*?;/gi,"");
|
||||
return group1 + group2 + group3;
|
||||
}},
|
||||
// Get all class attributes so we can work on them.
|
||||
|
||||
+2
@@ -290,6 +290,8 @@ EditorClean.prototype = {
|
||||
{regex: /(<[^>]*?style\s*?=\s*?")([^>"]*)(")/gi, replace: function(match, group1, group2, group3) {
|
||||
// Remove MSO-blah, MSO:blah style attributes.
|
||||
group2 = group2.replace(/(?:^|;)[\s]*MSO[-:](?:&[\w]*;|[^;"])*/gi,"");
|
||||
// Remove backgroud color style.
|
||||
group2 = group2.replace(/background-color:.*?;/gi,"");
|
||||
return group1 + group2 + group3;
|
||||
}},
|
||||
// Get all class attributes so we can work on them.
|
||||
|
||||
Reference in New Issue
Block a user