Changes between Initial Version and Version 1 of Ticket #252


Ignore:
Timestamp:
Mar 16, 2007, 4:20:02 PM (17 years ago)
Author:
Frederico Caldeira Knabben
Comment:

Inputing invalid markup will certainly generate unpredictable results, not only because of the editor code, but also (and mainly) because of browsers' DOM parsers, which often are buggy (specially IE's).

This is something really hard to handle, because of the hundreds of invalid things to consider. In such cases, it's better to not give access to the source view for users that don't know how to use it properly. I know, sometimes they really want it, so they must also be aware about the consequences.

In the described case, the editor tries to fix things when switching to source the first time. Then, the fix in interpreted in a different way by the browser, and the editor generates a different output again. It continues until the code stabilize and become valid (three times in this case).

I don't see much chances for a fix for now. We could think about a custom HTML parser that fixes the input text, but this is a huge work, with impacts also in the loading performance.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #252

    • Property Milestone changed from FCKeditor 2.4.1 to
    • Property Summary changed from Toggling back and forth between source mode inserts empty paragraphs with IE to Pasting invalid markup generate empty paragraphs with IE
  • Ticket #252 – Description

    initial v1  
    22
    33{{{
    4 
    5 
    6                                                                                                 <span style="background-color: #FFFFFF">
     4<span style="background-color: #FFFFFF">
    75<div align="center">
    86<p align="justify"><span style="FONT-WEIGHT: 400"><font size="1"><u><strong>
     
    2321&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ~&nbsp;Alex Anderson - Minnesota Investment Property Specialist</font></strong></span></font><font size="2" face="Tahoma">
    2422</font></p>
    25 
    2623}}}
    2724
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy