Uploaded image for project: 'Third Party Software'
  1. Third Party Software
  2. TP-6

FCKEditor Word Paste Differences between Firefox and IE and <!--[]--> Entries

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Labels:
      None

      Description

      (1) If you paste text from Word into an FCKEditor, if you use IE then you get a warning "The text you want to paste seems to be copied from Word. Do you want to clean it before posting?". If you accept the prompt, it opens the Word paste dialogue window.

      If you paste the same text into Firefox, the prompt does not appear. So when you use Firefox you have to remember to use the special Word paste button.

      (2) When you paste text from Word to the FCKEditor, it may contain text like <!--[if !supportLists]-->. If you use Internet Explorer and use the special Word paste dialogue box then this <!--[]--> is removed.

      But if you use paste it in using Firefox (using either the normal paste or the special Word paste) the <!--[]--> gets pasted in the window. (You can see it in the HTML if you click on the Source button). You won't see the <!--[]--> in the authoring window in Firefox, as Firefox (correctly) thinks this is a comment and that it should be hidden.

      Using the attached word document, copy the two lines illustrated in the copytheselines.jpg.

      When you paste it into Firefox using the normal paste you get:
      <p class="MsoNormal"><span lang="EN-AU" style="font-family: Arial;"><o:p>&nbsp;</o:p></span></p>
      <p style="margin-left: 18pt; text-indent: -18pt;" class="MsoNormal"><!--[if !supportLists]--><strong style=""><span lang="EN-AU" style="font-size: 10pt; font-family: Arial;"><span style="">1.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span></strong><!--[endif]--><strong style=""><span lang="EN-AU" style="font-size: 10pt; font-family: Arial;">This is my question.<o:p></o:p></span></strong></p>
      <p class="MsoNormal" style="margin-left: 18pt; text-indent: -18pt;"><strong style=""><span lang="EN-AU" style="font-size: 10pt; font-family: Arial;"><o:p></o:p></span></strong></p>

      When you paste it into Firefox using the Word paste, you get
      <div>&nbsp;</div>
      <p style="margin-left: 18pt; text-indent: -18pt;"><!--[if !supportLists]--><strong><span style="font-size: 10pt;">1.<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></strong><!--[endif]--><strong><span style="font-size: 10pt;">This is my question.</span></strong></p>

      If you paste the text into IE using the Word paste, you get
      <div>&nbsp;</div>
      <div style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt"><strong><span style="FONT-SIZE: 10pt">1.<span style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></strong><strong><span style="FONT-SIZE: 10pt">This is my question.</span></strong></div>

      The <!--[if !supportLists]--> bits have been stripped out of the IE version.

      Now I save these questions and run the designs. When I run learner in Firefox it is fine as it sees the <!--[if !supportLists]--> is ignored as a comment.

      But when I run learner in IE I do see the comment, as this <!--[if ]--> is a special Microsoft syntax that is recognised by the browser. Its how we do selective css imports for IE. Why it shows it on the screen I don't know - surely IE should realise it isn't the if IE syntax and ignore it!

      See the screenshot textappearsinIE.jpg.

      So the short answer seems:

      (1) If you want to paste into the FCKEditor from Word then do it into IE as it does a better job of cleaning up the horrible HTML that Word uses. Particularly if you are using any of the Word list formats (bullet points, numbered lists).

      (2) If you want to use Firefox for authoring, then don't try to copy any formatting in from Word. After pasting from Word you should go to source, clear out any of the HTML that has come from Word and then use FCKEditor's buttons to reformat your text.

      1. survey.doc
        24 kB
        Fiona Malikoff
      1. copytheselines.jpg
        52 kB
      2. textappearsinIE.jpg
        64 kB

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            ernieg Ernie Ghiglione
            Reporter:
            fionam Fiona Malikoff
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development