Changes between Initial Version and Version 5 of Ticket #328


Ignore:
Timestamp:
Jul 23, 2007, 10:15:06 PM (17 years ago)
Author:
Martin Kou
Comment:

I've discovered another whitespace trimming issue with <pre> tags. By applying the test case given in ticket #346 in Internet Explorer:

<pre>

  /***
   * First line (above) is blank.
   * Some more text...
   */
   public void testFunction(){
     System.out.println( "abc" );
   }
</pre>

Switching between source and WYSIWYG mode after that, once, would delete the first line break. Switching again would delete the second line break.

After some experiments, the culprit to this problem is found to be the Microsoft.XmlDom ActiveX we're using to reassemble the document between mode switches. The xml property's value of this ActiveX object would chop exactly one newline character off from the beginning of the <pre> tag, if one can be found.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #328

    • Property Keywords Confirmed added; pre removed
    • Property Status changed from new to assigned
    • Property Owner set to Martin Kou
    • Property Milestone changed from to FCKeditor 2.5
  • Ticket #328 – Description

    initial v5  
    44{{{
    55<pre>
     6
    67  /***
    78   * First line (above) has leading whitespace.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy