X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fforms%2Fdialogs%2Fcheckbox.js;fp=_source%2Fplugins%2Fforms%2Fdialogs%2Fcheckbox.js;h=92bcddbcd0b6272dfbdde754760fa8d824884db5;hb=e7789c1ad838194d45eeee6ac2eb6e55f5cf35a1;hp=1016d38795fd397c35299119ed19d2134b065911;hpb=059b4c2fef02528bf1af189f7996e80652faddfb;p=ckeditor.git diff --git a/_source/plugins/forms/dialogs/checkbox.js b/_source/plugins/forms/dialogs/checkbox.js index 1016d38..92bcddb 100644 --- a/_source/plugins/forms/dialogs/checkbox.js +++ b/_source/plugins/forms/dialogs/checkbox.js @@ -91,7 +91,19 @@ CKEDITOR.dialog.add( 'checkbox', function( editor ) if ( value && !( CKEDITOR.env.ie && value == 'on' ) ) element.setAttribute( 'value', value ); else - element.removeAttribute( 'value' ); + { + if ( CKEDITOR.env.ie ) + { + // Remove attribute 'value' of checkbox #4721. + var checkbox = new CKEDITOR.dom.element( 'input', element.getDocument() ); + element.copyAttributes( checkbox, { value: 1 } ); + checkbox.replace( element ); + editor.getSelection().selectElement( checkbox ); + data.element = checkbox; + } + else + element.removeAttribute( 'value' ); + } } }, {