Revision 1161
Added by Dietmar over 14 years ago
fck_paste.html | ||
---|---|---|
56 | 56 |
'javascript:void( (function(){' + |
57 | 57 |
'document.open() ;' + |
58 | 58 |
'document.domain=\'' + document.domain + '\' ;' + |
59 |
'document.write(\'<html><head><script>window.onerror = function() { return true ; };<\/script><\/head><body><\/body><\/html>\') ;' + |
|
59 |
'document.write(\'<html><head><scr' + 'ipt>window.onerror = function() { return true ; };<\/script><\/head><body><\/body><\/html>\') ;' +
|
|
60 | 60 |
'document.close() ;' + |
61 | 61 |
'document.body.contentEditable = true ;' + |
62 | 62 |
'window.focus() ;' + |
... | ... | |
73 | 73 |
// Avoid errors if the pasted content has any script that fails: #389 |
74 | 74 |
var oDoc = oFrame.contentWindow.document ; |
75 | 75 |
oDoc.open() ; |
76 |
oDoc.write('<html><head><script>window.onerror = function() { return true ; };<\/script><\/head><body><\/body><\/html>') ; |
|
76 |
oDoc.write('<html><head><scr' + 'ipt>window.onerror = function() { return true ; };<\/script><\/head><body><\/body><\/html>') ;
|
|
77 | 77 |
oDoc.close() ; |
78 | 78 |
|
79 | 79 |
if ( FCKBrowserInfo.IsIE ) |
... | ... | |
194 | 194 |
html = html.replace( /\s*mso-[^:]+:[^;"]+;?/gi, '' ) ; |
195 | 195 |
|
196 | 196 |
// Remove margin styles. |
197 |
html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*;/gi, '' ) ;
|
|
198 |
html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*"/gi, "\"" ) ;
|
|
197 |
html = html.replace( /\s*MARGIN: 0(?:cm|in) 0(?:cm|in) 0pt\s*;/gi, '' ) ;
|
|
198 |
html = html.replace( /\s*MARGIN: 0(?:cm|in) 0(?:cm|in) 0pt\s*"/gi, "\"" ) ;
|
|
199 | 199 |
|
200 |
html = html.replace( /\s*TEXT-INDENT: 0cm\s*;/gi, '' ) ;
|
|
201 |
html = html.replace( /\s*TEXT-INDENT: 0cm\s*"/gi, "\"" ) ;
|
|
200 |
html = html.replace( /\s*TEXT-INDENT: 0(?:cm|in)\s*;/gi, '' ) ;
|
|
201 |
html = html.replace( /\s*TEXT-INDENT: 0(?:cm|in)\s*"/gi, "\"" ) ;
|
|
202 | 202 |
|
203 | 203 |
html = html.replace( /\s*TEXT-ALIGN: [^\s;]+;?"/gi, "\"" ) ; |
204 | 204 |
|
Also available in: Unified diff
new update FCKeditor to Version 2.6.5 Modulversion 2.9.1