[MAGNOLIA-3159] FCKEditor has a space ( ) in its content when editing new properties Created: 19/Mar/10  Updated: 23/Jan/13  Resolved: 10/May/10

Status: Closed
Project: Magnolia
Component/s: fckeditor
Affects Version/s: None
Fix Version/s: 4.3.2

Type: Bug Priority: Major
Reporter: Magnolia International Assignee: Federico Grilli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Comments   
Comment by Federico Grilli [ 10/May/10 ]

It seems that the problem only affects webkit and opera browsers (no problem with FF and IE). The reason for why those browsers add the   seems to be this

Interesting, the &nbsp; 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 " " or the 0xA0 character there, which is what Opera and Safari did.

Since the   in Safari and Opera is added by the browser rather than by FCKeditor, and they have a good reason for doing so.

http://dev.fckeditor.net/ticket/1509

Comment by Federico Grilli [ 10/May/10 ]

Tested on Ubuntu/Chrome 5.0.375.23 dev + Ubuntu/FF 3.5 to see if the change introduced regressions.

Generated at Mon Feb 12 03:43:46 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.