Ticket #4934: 4934.patch
File 4934.patch, 898 bytes (added by , 14 years ago) |
---|
-
_source/plugins/preview/plugin.js
29 29 else 30 30 { 31 31 var bodyHtml = '<body ', 32 body = editor.document .getBody();32 body = editor.document && editor.document.getBody(); 33 33 34 if ( body.getAttribute( 'id' ) ) 35 bodyHtml += 'id="' + body.getAttribute( 'id' ) + '" '; 36 if ( body.getAttribute( 'class' ) ) 37 bodyHtml += 'class="' + body.getAttribute( 'class' ) + '" '; 34 if ( body ) 35 { 36 if ( body.getAttribute( 'id' ) ) 37 bodyHtml += 'id="' + body.getAttribute( 'id' ) + '" '; 38 if ( body.getAttribute( 'class' ) ) 39 bodyHtml += 'class="' + body.getAttribute( 'class' ) + '" '; 40 } 41 38 42 bodyHtml += '>'; 39 43 40 44 sHTML =