Opened 14 years ago

Closed 14 years ago

#6110 closed Bug (invalid)

Code altered after deleting quotation mark within <td>

Reported by: twelling Owned by:
Priority: Normal Milestone:
Component: Core : Output Data Version: 3.4
Keywords: Webkit Opera Firefox IE Cc:

Description (last modified by Krzysztof Studnik)

When using a single quote within a double quote "BOTH" ckeditor and fckeditor cancel out the single quote which in turn is altering the code in the background.

TC:

  1. In CKEditor, delete all content
  2. In source editing paste:
    <table>
      <tbody>
    	<tr>
    	   <td align="center" bgcolor="#009900" class="style26" style="background-image: url( http://www.aaagraphicsanddesign.com/index_htm_files/4.png); width: 216px">
    	&nbsp;</td>
    	</tr>
       </tbody>
    </table>
    
  3. Delete last " mark in <td>
  4. Switch to WYSIWYG mode - the table cell is missing or messed
  5. and back to Source editing
  6. <td></td>line is interpreted wrong or deleted
    1. in Chrome7 & Safari:
      <table>
        <tbody>
          <tr>
          </tr>
        /tbody>
      </table>
      
    2. in Firefox 3.6.9:
      <table>
        <tbody>
      	<tr>
       	 <td 216px="" align="center" bgcolor="#009900" class="style26" http:="" index_htm_files="" style="" width:="" www.aaagraphicsanddesign.com="">
      	 &nbsp;</td>
      	</tr>
        </tbody>
      </table>
      
    3. in IE8
      <table>
      	<tbody>
      		<tr>
      			&lt;td align=&quot;middle&quot; bgcolor=&quot;#009900&quot; class=&quot;style26&quot; style=&quot;background-image: url(http://www.aaagraphicsanddesign.com/index_htm_files/4.png); width: 216px&gt; &nbsp;
      		</tr>
      	</tbody>
      </table>
      
    4. in Opera 10.62
      <table>
        <tbody>
          <tr>
      	<td align="center" bgcolor="#009900" class="style26" style="background-image: url( http://www.aaagraphicsanddesign.com/index_htm_files/4.png); width: 216px&gt;
      				 &lt;/td&gt;
      		&lt;/tr&gt;
      	&lt;/tbody&gt;
      &lt;/table&gt;
      ">
      	&nbsp;</td>
          </tr>
        </tbody>
      </table>
      

Change History (3)

comment:1 Changed 14 years ago by Krzysztof Studnik

Description: modified (diff)
Keywords: Webkit Opera Firefox IE added
Status: newconfirmed
Summary: Altering codeCode altered after deleting quotation mark within <td>
Version: 3.4

I am not 100% sure if I confirmed the same problem as #twelling (without complete code, I was guessing). But something is not right with the code interpretation, when one quotation mark is gone

comment:2 Changed 14 years ago by Krzysztof Studnik

Update In Chrome7, when second quotation mark is deleted from bgcolor="#009900" - CKEditor freezes when I try to change view to WYSIWYG

In the same case, in Safari, code becomes a mess:

<p>
	&lt;td align=&quot;center&quot; bgcolor=&quot;#009900 class=&quot; style26&quot;=&quot;&quot; style=&quot;background-image: url( http://www.aaagraphicsanddesign.com/index_htm_files/4.png); width: 216px&quot;&gt; &nbsp;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;</p>
<table>
	<tbody>
		<tr>
		</tr>
	</tbody>
</table>

comment:3 Changed 14 years ago by Krzysztof Studnik

Resolution: invalid
Status: confirmedclosed

Missing parameters are interpreted differently within browsers. It is not CKEditor bug.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy