Re: Insert from Word using Firefox - errors

  •  07-18-2007, 4:48 PM

    Re: Insert from Word using Firefox - errors

    Hi Fredd,
     
    I think what Adam is trying to say is that the paste word option only removes specific microsoft code, but doeesn't actually alter the valid HTML.
     
    e.g. When pasting from word you may get the following:
     
    <p class="MsoNormal"><em style="mso-bidi-font-style: normal"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial">This is some text copied from word<o:p></o:p></span></em></p>
    <p class="MsoNormal"><em style="mso-bidi-font-style: normal"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial"><o:p>&nbsp;</o:p></span></em></p>
    <h3><span lang="EN-GB">And another paragraph</span></h3>
     
    is cleaned to :
     
    <p><em><span>This is some text copied from word</span></em></p>
    <p><em>&nbsp;</em></p>
    <h3><span>And another paragraph</span></h3>
     
    By removing the microsoft specific  code (i.e. style="mso-bidi-font-style: normal", etc).
     
    It doesn't change a p to a div (or visa versa).
     
    I think what you might be after is to use the Pase Text option which removes all HTML formatting.
     
    Thanks,
    Ady
View Complete Thread