Ticket #9774: bodywrap.patch
File bodywrap.patch, 1.2 KB (added by , 12 years ago) |
---|
-
_source/plugins/wysiwygarea/
old new 996 996 '<body' + ( config.bodyId ? ' id="' + config.bodyId + '"' : '' ) + 997 997 ( config.bodyClass ? ' class="' + config.bodyClass + '"' : '' ) + 998 998 '>' + 999 (config.bodyPrepend ? '<!--BODYPREPENDBEGIN-->' + config.bodyPrepend + '<!--BODYPREPENDEND-->' : '') + 999 1000 data + 1001 (config.bodyAppend ? '<!--BODYAPPENDBEGIN-->' + config.bodyAppend + '<!--BODYAPPENDEND-->' : '') + 1000 1002 '</html>'; 1001 1003 } 1002 1004 … … 1023 1025 var data = fullPage 1024 1026 ? doc.getDocumentElement().getOuterHtml() 1025 1027 : doc.getBody().getHtml(); 1028 1029 if( ! fullPage && config.bodyPrepend){ 1030 data = data.replace(/<!--BODYPREPENDBEGIN-->[\s\S]*<!--BODYPREPENDEND-->/,''); 1031 } 1032 if( ! fullPage && config.bodyAppend){ 1033 data = data.replace(/<!--BODYAPPENDBEGIN-->[\s\S]*<!--BODYAPPENDEND-->/,''); 1034 } 1026 1035 1027 1036 // BR at the end of document is bogus node for Mozilla. (#5293). 1028 1037 if ( CKEDITOR.env.gecko )