Opened 9 years ago

Last modified 9 years ago

#14667 closed Bug

[IE] Removing background from selected text not working correctly — at Version 3

Reported by: Tomasz Jakut Owned by: Tomasz Jakut
Priority: Normal Milestone: CKEditor 4.5.10
Component: General Version: 4.5.11
Keywords: Internet Explorer Cc:

Description (last modified by Tomasz Jakut)

Steps to reproduce

  1. Open http://ckeditor.dev/samples.
  2. In source mode, set editor's content to:
    <p><span style="background-color: rgb(255,255,0);">Text with background</span></p>
    
  3. In WYSIWYG mode, select "with".
  4. Open console and paste into it:
    var style = new CKEDITOR.style( {
        element: 'span',
        styles: {
            'background-color': '#ff0'
        },
        type: CKEDITOR.STYLE_INLINE
    } );
    
    style.remove( CKEDITOR.instances.editor );
    

Note that "with" must be still selected inside the editor.

Expected result

Background is removed from the selected text.

Actual result

Background is removed from the entire paragraph.

Other details (browser, OS, CKEditor version, installed plugins)

Only in Internet Explorer 9+.

It can be reproduced only on master, ( git:0528e5aaeb104ffd283aeb4ff5efa2fcdb0616e4).

Change History (3)

comment:1 Changed 9 years ago by Tomasz Jakut

Status: newconfirmed

comment:2 Changed 9 years ago by Tomasz Jakut

Owner: set to Tomasz Jakut
Status: confirmedassigned

comment:3 Changed 9 years ago by Tomasz Jakut

Description: modified (diff)
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