Skip to content

Commit

Permalink
Merge branch 't/13785'
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewand committed Oct 21, 2015
2 parents e634323 + d6390a5 commit e4f2432
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions plugins/wysiwygarea/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@

var editable = this;

// Without it IE8 has problem with removing selection in nested editable. (#13785)
if ( CKEDITOR.env.ie && !CKEDITOR.env.edge ) {
doc.getDocumentElement().addClass( doc.$.compatMode );
}

// Prevent IE/Edge from leaving a new paragraph/div after deleting all contents in body. (#6966, #13142)
if ( CKEDITOR.env.ie && !CKEDITOR.env.edge && editor.enterMode != CKEDITOR.ENTER_P ) {
removeSuperfluousElement( 'p' );
Expand Down
4 changes: 0 additions & 4 deletions tests/plugins/removeformat/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ bender.test(
'test remove format selection in nested editable': function() {
var bot = this.editorBot;

if ( CKEDITOR.env.ie && CKEDITOR.env.version == 8 ) {
assert.ignore();
}

bender.tools.selection.setWithHtml( this.editor, '<h1><em>fo{o</em></h1>' +
'<div contenteditable="false">' +
'<div contenteditable="true">' +
Expand Down

0 comments on commit e4f2432

Please sign in to comment.