Opened 18 years ago

Closed 17 years ago

#378 closed Bug (worksforme)

Applying style moves selection

Reported by: Paul Moers Owned by: Hallvord R. M. Steen (Opera Software)
Priority: Normal Milestone: Opera Compatibility
Component: Core : Styles Version: FCKeditor 2.4.2
Keywords: Cc:

Description

Applying style to a selection moves the selection selectionLength number of character forward or to just before the next opening tag of there is one within selectionLength number of character.

Change History (6)

comment:1 Changed 18 years ago by Frederico Caldeira Knabben

Keywords: style selection tag Opera removed
Summary: applying style moves selectionApplying style moves selection

I'm not sure that is the same thing you have said Paul (the description was a little bit confusing :)). I have the following steps to reproduce both the described behaviors:

  • Open sample01.html.
  • Select the "This" word.
  • Apply the "Title" style.

and

  • Open sample01.html.
  • Select the "some" word.
  • Apply the "Title" style.

comment:2 Changed 18 years ago by Paul Moers

I tried to describe the problem as elegant as possible, guess I failed :)

The length of your selection determines the number of character that this selection will be moved when you apply a style to it:

  • Selecting 'This i' (6 characters) will move the selection 6 characters forward;
  • Selecting 'Yo' (2 characters) moves it 2 characters forward;

An opening tag will halt the shifting:

  • Selecting 'You are us' (10 chars) will move it to just before the FCKeditor link, i.e. just before the opening tag.

comment:3 Changed 18 years ago by Kaare Byberg

This has been reported as Opera bug 262270.

comment:4 Changed 17 years ago by Hallvord R. M. Steen (Opera Software)

should be fixed but testing depends on #570

comment:5 Changed 17 years ago by Hallvord R. M. Steen (Opera Software)

Owner: set to Hallvord R. M. Steen (Opera Software)
Status: newassigned

comment:6 Changed 17 years ago by Hallvord R. M. Steen (Opera Software)

Resolution: worksforme
Status: assignedclosed

Works in build 9488

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