Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed bug where empty boxes return '<html/>' as value instead of an e…

…mpty string
  • Loading branch information...
commit 16ab4b46a938e63e040e94ac88f3122693393498 1 parent 39e52d1
Hugo Chinchilla authored committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  js/punymce/puny_mce_src.js
View
3  js/punymce/puny_mce_src.js
@@ -1033,7 +1033,8 @@
save : function() {
var e = pageDOM.get(s.id), h = t.getContent({save : true});
-
+ // Fixed bug where empty boxes return '<html/>' as content
+ h = h.replace(/<(\/?)html(\/?)>/gi, "");
if (/TEXTAREA|INPUT/.test(e.nodeName))
e.value = h;
else
Please sign in to comment.
Something went wrong with that request. Please try again.