- body = CKEDITOR.document.getBody(),\r
- baseTag = ( editor.config.baseHref.length > 0 ) ? '<base href="' + editor.config.baseHref + '" _cktemp="true"></base>' : '';\r
+ body = editor.document && editor.document.getBody();\r
+\r
+ if ( body )\r
+ {\r
+ if ( body.getAttribute( 'id' ) )\r
+ bodyHtml += 'id="' + body.getAttribute( 'id' ) + '" ';\r
+ if ( body.getAttribute( 'class' ) )\r
+ bodyHtml += 'class="' + body.getAttribute( 'class' ) + '" ';\r
+ }\r