JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1
[ckeditor.git] / _source / plugins / styles / plugin.js
index 2e82127..278f532 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -198,8 +198,8 @@ CKEDITOR.STYLE_OBJECT = 3;
                                                if ( attName == '_length' )\r
                                                        continue;\r
 \r
-                                               var elementAttr = element.getAttribute( attName );\r
-                                               if ( attribs[attName] ==\r
+                                               var elementAttr = element.getAttribute( attName ) || '';\r
+                                               if ( attribs[ attName ] ==\r
                                                         ( attName == 'style' ?\r
                                                           normalizeCssText( elementAttr, false ) : elementAttr  ) )\r
                                                {\r