JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1
[ckeditor.git] / _source / plugins / pagebreak / plugin.js
index eaee4a6..cd70e55 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
@@ -55,7 +55,8 @@ CKEDITOR.plugins.add( 'pagebreak',
                                        {\r
                                                div : function( element )\r
                                                {\r
-                                                       var style = element.attributes.style,\r
+                                                       var attributes = element.attributes,\r
+                                                               style = attributes && attributes.style,\r
                                                                child = style && element.children.length == 1 && element.children[ 0 ],\r
                                                                childStyle = child && ( child.name == 'span' ) && child.attributes.style;\r
 \r