#2522: Bug report: no empty value on firefox
--------------------------------+-------------------------------------------
 Reporter:  Almog               |       Owner:                 
     Type:  Bug                 |      Status:  new            
 Priority:  Normal              |   Milestone:                 
Component:  Core : Output Data  |     Version:  FCKeditor 2.6.4
 Keywords:  Confirmed HasPatch  |  
--------------------------------+-------------------------------------------
Changes (by botimer):

  * keywords:  Pending WorksForMe => Confirmed HasPatch
  * version:  => FCKeditor 2.6.4


Comment:

 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:

  1. Editors with no content in WYSIWYG mode are submitted with a single BR
 tag
  1. `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:

  1. Select `EnterMode = br`.
  1. Select Source mode
  1. Remove all content
  1. Return to WYSIWYG mode
  1. 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]).

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2522#comment:3>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to