#1509: normal whitespace changed into   by innerHtml()
-----------------------+----------------------------------------------------
  Reporter:  kwillems  |       Owner:  martinkou           
      Type:  Bug       |      Status:  assigned            
  Priority:  Normal    |   Milestone:  FCKeditor 2.6       
 Component:  General   |     Version:  FCKeditor 2.5 Beta  
Resolution:            |    Keywords:  Confirmed IE Review?
-----------------------+----------------------------------------------------
Changes (by martinkou):

  * keywords:  Confirmed IE Safari Opera => Confirmed IE Review?

Comment:

 The   in Opera and Safari are added by the browser itself when a
 space is typed at the end of paragraph, so it is different from the  
 added in IE by FCKeditor.

 Interesting, the   added by Opera and Safari is arguably more correct
 then what we're seeing in IE and Firefox - they're trying to preserve the
 single space you entered towards the end of the paragraph in the HTML
 code. They're doing this because having any ANSI whitespaces towards the
 end of a <P> block are ignored. Say, you wrote an HTML file with the
 following paragraph:
 {{{
 <P>Some text here </P>
 }}}

 The space after "here" is not rendered, and the only way to get a single
 space rendered after "here" is to add an "&nbsp;" or the 0xA0 character
 there, which is what Opera and Safari did.

 Since the &nbsp; in Safari and Opera is added by the browser rather than
 by FCKeditor, and they have a good reason for doing so. I suggest we only
 fix the issue for IE, and just leave it as-is in Opera and Safari.

 Also, in addition to the suggested change, I've added a "display: none"
 style attribute in my patch to prevent the string from flashing visibly in
 slow computers, as it had happened in the past with the selection logic
 and IE.

-- 
Ticket URL: <https://dev.fckeditor.net/ticket/1509#comment:4>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to