Opened 8 years ago

Last modified 8 years ago

#14667 closed Bug

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

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

Description

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+.

Probably introduced by http://github.com/ckeditor/ckeditor-dev/commit/0528e5aaeb104ffd283aeb4ff5efa2fcdb0616e4.

Change History (0)

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