Opened 10 years ago

Closed 10 years ago

#957 closed Bug (fixed)

Enter key after placeholder starts a new colored span in the next line

Reported by: Frederico Caldeira Knabben Owned by: Martin Kou
Priority: Normal Milestone: FCKeditor 2.6
Component: General Version: SVN (FCKeditor) - Retired
Keywords: Confirmed Review+ Cc:

Description

Steps to Reproduce

  1. Open sample06.html with Firefox;
  2. Place the cursor at the end of the line;
  3. Insert a Placeholder there;
  4. Move the cursor and then move again to the end of the line (right "after" the placeholder) with a mouse click;
  5. Hit Enter and type some text.

The following tag will be created in the new line:

<span style="background-color: rgb(255, 255, 0); color: rgb(0, 0, 0); cursor: default;">

Attachments (2)

957.patch (2.0 KB) - added by Martin Kou 10 years ago.
957_2.patch (2.0 KB) - added by Martin Kou 10 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 10 years ago by Martin Kou

Owner: set to Martin Kou
Status: newassigned

Changed 10 years ago by Martin Kou

Attachment: 957.patch added

comment:2 Changed 10 years ago by Martin Kou

Keywords: Review? added

The caret position check logic used for <A> tags comes in surprisingly handy here.

comment:3 Changed 10 years ago by Frederico Caldeira Knabben

Keywords: Review- added; Review? removed

The proposed fix doesn't work with FF2.

Changed 10 years ago by Martin Kou

Attachment: 957_2.patch added

comment:4 Changed 10 years ago by Martin Kou

Keywords: Review? added; Review- removed

Updated the patch for FF2 support.

comment:5 Changed 10 years ago by Frederico Caldeira Knabben

Keywords: Review+ added; Review? removed

comment:6 Changed 10 years ago by Martin Kou

Resolution: fixed
Status: assignedclosed

Fixed with [1663].

Click here for more info about our SVN system.

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy