Opened 17 years ago

Last modified 17 years ago

#332 closed Bug

Hitting Enter after links continues the link in the new paragraph — at Version 4

Reported by: hanki_pank Owned by:
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: UI : Enter Key Version: FCKeditor 2.4.2
Keywords: Confirmed Firefox SD-COE Cc: pkdille, Jean-Marc Libs, Nyloth

Description (last modified by Frederico Caldeira Knabben)

Handling of <a>-Tags within <li> is broken. Reproduction at the nightly build just right now :

  1. Hit return for a new line.
  2. Press "Insert Bulleted list" - Button
  3. Press "Insert Link" - Button
  4. enter www.blah.org as target and hit return to return back to gui
  5. Hit return to get new bullet.
  6. type "asd"

provides as source :

<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>
<ul>
    <li><a href="http://www.blah.org">www.blah.org</a></li>
    <li><a href="http://www.blah.org">asd</a></li>
</ul>
<p>&nbsp;</p>

Meaning, the <a>-Tag from the first bullet has been inherited by the second one, which is not what users expect, I guess.

Change History (4)

comment:1 Changed 17 years ago by hanki_pank

Here a more readable version....

Handling of <a>-Tags within <li> is broken.

Reproduction at the nightly build just right now :

  1. Hit return for a new line.
  2. Press "Insert Bulleted list" - Button
  3. Press "Insert Link" - Button
  4. enter www.blah.org as target and hit return to return back to gui
  5. Hit return to get new bullet.
  6. type "asd"

provides as source :

<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>
<ul>
    <li><a href="http://www.blah.org">www.blah.org</a></li>
    <li><a href="http://www.blah.org">asd</a></li>
</ul>
<p>&nbsp;</p>

Meaning, the <a>-Tag from the first bullet has been inherited by the second one, which is not what users expect, I guess.

comment:2 Changed 17 years ago by Frederico Caldeira Knabben

Keywords: Confirmed Firefox added
Milestone: FCKeditor 2.5
Version: FCKeditor 2.4.2

Confirmed with FF2. Ok with IE6.

comment:3 Changed 17 years ago by Frederico Caldeira Knabben

Related to #393 (Maybe a DUP).

comment:4 Changed 17 years ago by Frederico Caldeira Knabben

Cc: Pascal.KUSTNER@… added
Description: modified (diff)
Keywords: SD-COE added
Summary: <a> whitn <li>Hitting Enter after links continues the link in the new paragraph

It doesn't happen with lists only. Any kind of block with ends with a link will present the same problem.

For example:

  1. Load <p><a href="http://www.fckeditor.net/">FCKeditor</a></p> in the source.
  2. In WYSIWYG, click after "FCKeditor" and hit Enter.
  3. Type "Test".

You have this output:

<p><a href="http://www.fckeditor.net/">FCKeditor</a></p>
<p><a href="http://www.fckeditor.net/">Test</a></p>

While the expected is:

<p><a href="http://www.fckeditor.net/">FCKeditor</a></p>
<p>Test</p>
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy