Ticket #90 (closed Bug: fixed)

Opened 2 years ago

Last modified 2 years ago

Disappearing <br /> in non-empty list item

Reported by: kwillems Owned by:
Priority: Normal Milestone: FCKeditor 2.4.1
Component: UI : Enter Key Version: FCKeditor 2.4
Keywords: IE, Confirmed Cc:

Description (last modified by fredck) (diff)

I would like to create XHTML as the following:

<ul>
    <li class="decimal">
        <span class="ol">1. </span><em>Test 1</em><br />
        This line should appear on a new line, because a '<br />'
        was entered with 'SHIFT + ENTER, just after '<em>Test 1</em>'.
    </li> 
</ul>

But in fact in (Internet Explorer 7) when I hit SHIFT + ENTER a single time, the <br /> diasappears (for example: after switching to source-mode and back).

In Firefox i've no problem at all and SHIFT + ENTER behaves like expected!

I found two 'solutions':

  1. Remove the <em> and </em> surrounding 'Test 1'
  2. Hit SHIFT + ENTER twice!!!!

For me this is a huge problem, because the users of my CMS (most of them use Internet Explorer) of course would never think about hitting SHIFT + ENTER twice.

Regards,
Koen Willems

Attachments

FCK remove br.avi (132.1 KB) - added by zheng@… 2 years ago.
FCK remove <br /> after any closing tags #168 doesn't work

Change History

  Changed 2 years ago by fredck

  • keywords IE added
  • description modified (diff)
  • summary changed from disappearing <br /> in non-empty listitem to Disappearing <br /> in non-empty list item

Confirmed on IE 6 also. Ok with Firefox.

Steps to reproduce:

1. Enter the following code in the source:

<ul>
    <li class="decimal"><span class="ol">1. </span><em>Test 1</em>This line should appear on a new line, because a '&lt;br /&gt;' was entered with 'SHIFT + ENTER, just after '&lt;em&gt;Test 1&lt;/em&gt;'.</li>
</ul>

2. Switch back to WYSIWYG.

3. Place the cursor right after "Test 1".

4. Hit Shift+Enter. The <br> will be correctly included.

5. Switch back to source. The <br> will not be there anymore.

  Changed 2 years ago by fredck

  • keywords IE, Confirmed added; IE removed

  Changed 2 years ago by fredck

#122 is probably a DUP of this one.

  Changed 2 years ago by fredck

Confirmed #122 and #124 as DUP of this one.

follow-up: ↓ 6   Changed 2 years ago by fredck

  • status changed from new to closed
  • resolution set to fixed

Fixed with [168].

Click here for more info about our SVN system.

in reply to: ↑ 5   Changed 2 years ago by anonymous

Replying to fredck:

Fixed with [168]. Click here for more info about our SVN system.

Wow! Thanx very much for fixing this one!!!!!

Regards,
Koen Willems

  Changed 2 years ago by fredck

  • milestone changed from FCKeditor 2.4 to FCKeditor 2.4.1

Changed 2 years ago by zheng@…

FCK remove <br /> after any closing tags #168 doesn't work

Note: See TracTickets for help on using tickets.