X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fforms%2Fdialogs%2Fbutton.js;h=fc49f70bd3c2fada5445b1ac223b133d4991bf68;hb=614511639979907ceb0da3614122a4d8eb963ad4;hp=86cb4d7ebe168f7ac68d137593d6a4c0c9b1dfab;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/plugins/forms/dialogs/button.js b/_source/plugins/forms/dialogs/button.js index 86cb4d7..fc49f70 100644 --- a/_source/plugins/forms/dialogs/button.js +++ b/_source/plugins/forms/dialogs/button.js @@ -12,10 +12,10 @@ CKEDITOR.dialog.add( 'button', function( editor ) { delete this.button; var element = this.getParentEditor().getSelection().getSelectedElement(); - if ( element && element.getName() == "input" ) + if ( element && element.is( 'input' ) ) { var type = element.getAttribute( 'type' ); - if ( type == "button" || type == "reset" || type == "submit" ) + if ( type in { button:1, reset:1, submit:1 } ) { this.button = element; this.setupContent( element );