X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=blobdiff_plain;f=editor.js;h=e4ab02476439c5e7ae15636083a9b88c06b084a4;hp=0c9cf4652e9e87b4c47dd772e7f4c8b1df7146f0;hb=2424d0277c3130c74e6f0ab84855a653fe7818a5;hpb=65ceb13d7a5cbf9bda7995f98bbfb75811a6933b diff --git a/editor.js b/editor.js index 0c9cf46..e4ab024 100644 --- a/editor.js +++ b/editor.js @@ -1833,7 +1833,7 @@ PeachHTML5Editor.prototype.preserve_space = function(n, ideal_target) { PeachHTML5Editor.prototype.update_style_from_el = function(n) { var style style = n.el.getAttribute('style') - if (style != null) { + if (style != null && style != '') { return n.attrs.style = style } else { if (n.attrs.style != null) {