Hi to all!
I've done some changes to the fckeditorcode_ie.js to execute directly the cleaning during the Pasting Word.
All function well, except the removing of empty paragraph.
Code is the "original":
Results is like:
Why it doesn't work?!
Can you help me to fix this "bug"?!
Thanks to all!
I've done some changes to the fckeditorcode_ie.js to execute directly the cleaning during the Pasting Word.
All function well, except the removing of empty paragraph.
Code is the "original":
html = html.replace( /<([^\s>]+)(\s[^>]*)?>\s*<\/\1>/g, '' ) ; html = html.replace( /<([^\s>]+)(\s[^>]*)?>\s*<\/\1>/g, '' ) ; html = html.replace( /<([^\s>]+)(\s[^>]*)?>\s*<\/\1>/g, '' ) ;and I've added also this
html = html.replace( /<([^\s>]+)(\s[^>]*)?> <\/\1>/g, '' ) ; html = html.replace( /<([^\s>]+)(\s[^>]*)?> <\/\1>/g, '' ) ; html = html.replace( /<([^\s>]+)(\s[^>]*)?> <\/\1>/g, '' ) ;to remove tag with an "HTML space".
Results is like:
<p> </p><p> </p><h1>Object:</h1><p>-<span> </span>details and description of object;</p>
Why it doesn't work?!
Can you help me to fix this "bug"?!
Thanks to all!