Editor.normalize_html() now handles an empty/null html parameter.
This commit is contained in:
parent
99c32fa120
commit
f418027f54
|
@ -718,6 +718,8 @@ Editor.prototype.summarize = function () {
|
||||||
|
|
||||||
// return the given html in a normal form. this makes html string comparisons more accurate
|
// return the given html in a normal form. this makes html string comparisons more accurate
|
||||||
normalize_html = function ( html ) {
|
normalize_html = function ( html ) {
|
||||||
|
if ( !html ) return html;
|
||||||
|
|
||||||
// remove any "pulldown" attributes, which get added in IE whenever link.pulldown is set
|
// remove any "pulldown" attributes, which get added in IE whenever link.pulldown is set
|
||||||
var normal_html = html.replace( /\s+pulldown="null"/g, "" );
|
var normal_html = html.replace( /\s+pulldown="null"/g, "" );
|
||||||
|
|
||||||
|
|
Reference in New Issue