Skip to content

Commit

Permalink
Reverted part of 4c8bc32 to fix #13164.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed May 14, 2015
1 parent 7b3f15c commit ced0327
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/forms/dialogs/hiddenfield.js
Expand Up @@ -25,8 +25,9 @@ CKEDITOR.dialog.add( 'hiddenfield', function( editor ) {
onOk: function() {
var name = this.getValueOf( 'info', '_cke_saved_name' ),
editor = this.getParentEditor(),
elementHtml = ( CKEDITOR.document.$.documentMode < 8 ? '<input name="' + CKEDITOR.tools.htmlEncode( name ) + '">' : 'input' ),
element = CKEDITOR.env.ie && editor.document.createElement( elementHtml );
element = CKEDITOR.env.ie && CKEDITOR.document.$.documentMode < 8 ?
editor.document.createElement( '<input name="' + CKEDITOR.tools.htmlEncode( name ) + '">' ) :
editor.document.createElement( 'input' );

element.setAttribute( 'type', 'hidden' );
this.commitContent( element );
Expand Down

0 comments on commit ced0327

Please sign in to comment.