<\/body><\/html>') ; oDoc.close() ; if ( oFrame.contentDocument ) oFrame.contentDocument.designMode = 'on' ; else oFrame.contentWindow.document.body.contentEditable = true ; // Set the focus on the pasting area oFrame.contentWindow.focus(); } else { document.getElementById('txtData').style.display = '' ; } if ( sPastingType != 'Word' ) document.getElementById('oWordCommands').style.display = 'none' ; window.parent.SetOkButton( true ) ; window.parent.SetAutoSize( true ) ; } function Ok() { // Before doing anything, save undo snapshot. oEditor.FCKUndo.SaveUndoStep() ; var sHtml ; var sPastingType = window.parent.dialogArguments.CustomValue ; if ( sPastingType == 'Word' || sPastingType == 'Security' ) { var oFrame = document.getElementById('frmData') ; var oBody ; if ( oFrame.contentDocument ) oBody = oFrame.contentDocument.body ; else oBody = oFrame.contentWindow.document.body ; if ( sPastingType == 'Word' ) { // If a plugin creates a FCK.CustomCleanWord function it will be called instead of the
....
original tag send from Word is something like this: html = html.replace( /]*)>/gi, '' ) ; // Word likes to insert extra tags, when using MSIE. (Wierd). html = html.replace( /<(H\d)>]*>(.*?)<\/FONT><\/\1>/gi, '<$1>$2<\/$1>' ); html = html.replace( /<(H\d)>(.*?)<\/EM><\/\1>/gi, '<$1>$2<\/$1>' ); } else { html = html.replace( /]*)>/gi, '' ) ; html = html.replace( /]*)>/gi, '' ) ; html = html.replace( /]*)>/gi, '' ) ; html = html.replace( /]*)>/gi, '' ) ; html = html.replace( /]*)>/gi, '' ) ; html = html.replace( /]*)>/gi, '' ) ; html = html.replace( /<\/H\d>/gi, '<\/font><\/b><\/div>' ) ; // Transform
to
var re = new RegExp( '(]*>.*?)(<\/P>)', 'gi' ) ; // Different because of a IE 5.0 error html = html.replace( re, '<\/div>' ) ; // Remove empty tags (three times, just to be sure). // This also removes any empty anchor html = html.replace( /<([^\s>]+)(\s[^>]*)?>\s*<\/\1>/g, '' ) ; html = html.replace( /<([^\s>]+)(\s[^>]*)?>\s*<\/\1>/g, '' ) ; html = html.replace( /<([^\s>]+)(\s[^>]*)?>\s*<\/\1>/g, '' ) ; } return html ; }
Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.
Please paste inside the following box using the keyboard (Ctrl+V) and hit OK.
Ignore Font Face definitions
Remove Styles definitions
Thu, 04/24/2008 - 18:07
#1
