2 Replies Latest reply on Nov 22, 2010 12:57 PM by Bruce Randall

    tiny_mce_src script error in IE

    Bruce Randall Newbie

      When tables is pasted into the rich:editor from Word the following script throws

       

      Message: Unknown runtime error
      Line: 570
      Char: 1  >>>>>>>>>>>>>>>>                          n.outerHTML = n.outerHTML;
      Code: 0
      URI: http://server.foo.com/tdx/faces/a4j/g/3_3_3.Finalscripts/tiny_mce/tiny_mce_src.js

       

      {code}

                      each(t.dom.select('p table', o.node), function(n) {
                              // IE has a odd bug where tables inside paragraphs sometimes gets wrapped in a BODY and documentFragement element
                              // This hack seems to resolve that issue. This will normally not happed since your contents should be valid in the first place

                              if (isIE)
                                  n.outerHTML = n.outerHTML;

       

                              t.dom.split(t.dom.getParent(n, 'p'), n);
                          });
                      });

      {code}

       

       

       

      {code:xml}

       

      <p> </p>
      <p class="MsoNormal"><strong><span style="font-family: Times New Roman;"><strong><span style="font-family: Times New Roman;">
      <table class="MsoNormalTable" style="border: 1pt outset white; width: 15in;" border="1" cellspacing="1" cellpadding="0" width="1440">
      <tbody>
      <tr style="height: 15pt;">
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 3%; height: 15pt;" width="3%">
      <p class="MsoNormal"><span style="font-family: Times New Roman;"> </span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 3%; height: 15pt;" width="3%">
      <p class="MsoNormal"><span style="font-family: Times New Roman;"> </span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 16%; height: 15pt;" width="16%">
      <p><span><strong><span style="font-family: Arial; color: #993300;">Cypress</span></strong><strong><span style="font-family: Arial; color: #993300;"> STF/Chicago</span></strong></span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 3%; height: 15pt;" width="3%">
      <p><span><strong><span style="font-family: Arial; color: red;">4230</span></strong></span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 7%; height: 15pt;" width="7%">
      <p><span><strong><span style="font-family: Arial; color: red;">DTCI-1-18</span></strong></span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 9%; height: 15pt;" width="9%">
      <p><span><strong><span style="font-family: Arial; color: red;">dmdtci.6:1-18</span></strong></span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 7%; height: 15pt;" width="7%">
      <p><span><strong><span style="font-family: Arial; color: green;">SPM-13-60</span></strong></span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 3%; height: 15pt;" width="3%">
      <p class="MsoNormal"><span style="font-family: Times New Roman;"> </span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 3%; height: 15pt;" width="3%">
      <p class="MsoNormal"><span style="font-family: Times New Roman;"> </span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 3%; height: 15pt;" width="3%">
      <p class="MsoNormal"><span style="font-family: Times New Roman;"> </span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 3%; height: 15pt;" width="3%">
      <p class="MsoNormal"><span style="font-family: Times New Roman;"> </span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 3%; height: 15pt;" width="3%">
      <p class="MsoNormal"><span style="font-family: Times New Roman;"> </span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 3%; height: 15pt;" width="3%">
      <p class="MsoNormal"><span style="font-family: Times New Roman;"> </span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 10%; height: 15pt;" width="10%">
      <p><span><strong><span style="font-family: Arial; color: red;">pr-bkx-2wm-0001</span></strong></span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 5%; height: 15pt;" width="5%">
      <p><span><strong><span style="font-family: Arial; color: red;">C106967</span></strong></span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 5%; height: 15pt;" width="5%">
      <p><span><strong><span style="font-family: Arial; color: red;">N/A</span></strong></span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 10%; height: 15pt;" width="10%">
      <p><span><strong><span style="font-family: Arial; color: green;">pr-yrk-2wm-0001</span></strong></span></p>
      </td>
      <td style="border: 1pt inset white; padding: 1.5pt; background-color: transparent; width: 5%; height: 15pt;" width="5%">
      <p><strong><span style="font-family: Arial; color: green;"><span>C149992</span></span></strong></p>
      </td>
      </tr>
      </tbody>
      </table>
      </span></strong></span></strong></p>
      <p class="MsoNormal"> </p>

       

      {code:xml}

       

      You can clean new pasted items in Firefox or IE and there is not issue. If it was saved in Firefox with out a clean you can not clean in IE because it falls into the code above.