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
- Open http://ckeditor.dev/samples.
- In source mode, set editor's content to:
<p><span style="background-color: rgb(255,255,0);">Text with background</span></p>
- In WYSIWYG mode, select "with".
- 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.