Opened 16 years ago
Closed 13 years ago
#2522 closed Bug (invalid)
Bug report: no empty value on firefox
Reported by: | Almog | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Output Data | Version: | FCKeditor 2.6.4 |
Keywords: | HasPatch | Cc: |
Description
I used on the last ver of the fckeditor(Night build), and when i set the value to ""[empty] on firefox the value become to "<br>".
This bug makes some problems, start by the empty checking(& I have to "igonore" it by php) and continue to char counting.
I hope to find an any solution.
Best regards, Almog Baku,
Israel
Attachments (1)
Change History (5)
comment:1 Changed 16 years ago by
Keywords: | break line <br? removed |
---|---|
Priority: | High → Normal |
comment:2 Changed 16 years ago by
Keywords: | Pending WorksForMe added |
---|---|
Summary: | Bug report: NO EMPTY VALUE ON FIREFOX → Bug report: no empty value on firefox |
comment:3 Changed 16 years ago by
Keywords: | Confirmed HasPatch added; Pending WorksForMe removed |
---|---|
Version: | → FCKeditor 2.6.4 |
Attached is a patch to FCKXHtml._AppendNode()
. It ensures that, when EnterMode = br
, the padding node is not returned by FCK.GetXHTML()
. This fixes two specific symptoms:
- Editors with no content in WYSIWYG mode are submitted with a single BR tag
FCK.GetXHTML()
is dirtying the content by tracking the padding node improperly
This is also related to ticket #1150. The attached patch does not resolve the issue where Select All followed by a backspace while EnterMode = br
leaves a dangling BR that is not the padding node.
This scenario can be exercised with Sample 12. Steps to test:
- Select
EnterMode = br
. - Select Source mode
- Remove all content
- Return to WYSIWYG mode
- Click Submit
With this patch, there should be no submitted content on the result page. Without it, there will be a stray <br />
, which has been stripped of the bogus node attributes (as a result of #1150 / [2219]).
comment:4 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | confirmed → closed |
FCKeditor was retired and is no longer supported. All active development was moved to its successor, CKEditor 3.x, that is a fully mature and far superior product. We recommend you upgrade as soon as possible.
Could you try reproduce it with current Night build? How you set an empty value?