Ticket #2193 (closed Bug: fixed)

Opened 6 months ago

Last modified 5 months ago

Opera: Can't place cursor at the end of paragraphs

Reported by: fredck Owned by: martinkou
Priority: High Milestone: FCKeditor 2.6.1
Component: General Version: SVN
Keywords: Confirmed Opera Review+ Cc: hallvord@…

Description

Steps to Reproduce

  1. Load sample01.html.
  2. Delete everything.
  3. Type "This is a test" and hit ENTER.
  4. Click after "test" to move the caret to the end of that paragraph.

The caret will jump to the start of the paragraph. After that:

  1. Double click "is" and make it bold.
  2. Click the end of the paragraph again.

The caret will now jump right after "is". It seems to jump right after the last element in the paragraph, if available.

The same thing happens if you try to move the caret there with the keyboard by using both the LEFT ARROW and the RIGHT ARROW.

Confirmed with Opera build 9972.

Attachments

2193.patch (1.4 KB) - added by martinkou 5 months ago.

Change History

  Changed 6 months ago by hallvord@…

Still a problem in build 10037 but we'll get builds with the #2195 fix soon so I'm sort of hoping that the issues are related.. Probably needs further investigation.

follow-up: ↓ 5   Changed 5 months ago by hallvord@…

This is caused by a call to the MoveCursor() function.

Line 107 or so of linked script http://www.fckeditor.net/nightly/fckeditor/editor/_source/internals/fck_gecko.js contains an if clause which contains among others the following:

String(node.parentNode.contentEditable) == 'false'

This test is always true in Opera so the return statement following that if is ignored. Thus the MoveCursor function is executed to the end and places the cursor at the start of the text node you're in.

  Changed 5 months ago by martinkou

  • owner set to martinkou
  • status changed from new to assigned

Changed 5 months ago by martinkou

  Changed 5 months ago by martinkou

  • keywords Review? added

in reply to: ↑ 2   Changed 5 months ago by fredck

Replying to hallvord@opera.com:

This test is always true in Opera

Hallvord, be sure to have a ticket at your side for this one!

  Changed 5 months ago by fredck

  • keywords Review+ added; Review? removed

  Changed 5 months ago by martinkou

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

Fixed with [2054].

Click here for more info about our SVN system.

  Changed 5 months ago by fredck

  • milestone changed from Opera Compatibility to FCKeditor 2.6.1
Note: See TracTickets for help on using tickets.