Ticket #1270 (closed Bug: fixed)
Style should not be removed from collapsed selection on element boundary
|Reported by:||fredck||Owned by:|
|Priority:||Normal||Milestone:||FCKeditor 2.5 Beta|
|Component:||Core : Styles||Version:||SVN (FCKeditor) - Retired|
If the selection is collapsed in the one of the boundaries of a style element, the element must not be removed when removing the style.
For example, today we have the following behavior when removing a <b> style (where "|" represents the selection):
Before: This is some <b>styles|</b> text. After: This is some styles| text.
The expected result is the following instead:
This is some <b>styles</b>| text.
The style is simply moved outside the element. The same behavior is expected if the collapsed selection is placed at the beginning of the element.