Roo/HtmlEditorCore.js
authorAlan Knowles <alan@roojs.com>
Wed, 3 Sep 2014 06:55:58 +0000 (14:55 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 3 Sep 2014 06:55:58 +0000 (14:55 +0800)
Roo/HtmlEditorCore.js

index 08cfb7e..b5a4961 100644 (file)
@@ -1198,7 +1198,8 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
         if (node.hasAttribute("lang")) {
             node.removeAttribute("lang");
         }
-        if (node.getAttribute("style") && node.getAttribute("style").length) {
+        
+        if (node.hasAttribute("style")) {
             
             var styles = node.getAttribute("style").split(";");
             var nstyle = [];