Skip to content

Commit

Permalink
Merge branch 'MDL-47002-int-master' of git://github.com/merrill-oakla…
Browse files Browse the repository at this point in the history
…nd/moodle
  • Loading branch information
stronk7 committed Mar 25, 2015
2 parents 21e864c + 665829e commit 54c40ff
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Expand Up @@ -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[^>]*>(&nbsp;|\s)*<\/span>/gi, replace: ""}
// Remove empty spans, but not ones from Rangy.
{regex: /<span(?![^>]*?rangySelectionBoundary[^>]*?)[^>]*>(&nbsp;|\s)*<\/span>/gi, replace: ""}
];

// Apply the rules.
Expand Down

0 comments on commit 54c40ff

Please sign in to comment.