Skip to content

Commit

Permalink
Merge branch 't/10265'
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Apr 2, 2013
2 parents 86d354e + c16e257 commit 8ad32fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -5,6 +5,7 @@ CKEditor 4 Changelog

* [#10172](http://dev.ckeditor.com/ticket/10172): Pressing delete/backspace in empty table cell moves cursor to next/previous cell.
* [#10219](http://dev.ckeditor.com/ticket/10219): Error thrown when destroying an instance in parallel with a mouseup event.
* [#10265](http://dev.ckeditor.com/ticket/10265): Wrong loop type in filebrowser plugin.

## CKEditor 4.1

Expand Down
5 changes: 4 additions & 1 deletion plugins/filebrowser/plugin.js
Expand Up @@ -219,9 +219,12 @@
// elements Array of {@link CKEDITOR.dialog.definition.content}
// objects.
function attachFileBrowser( editor, dialogName, definition, elements ) {
if ( !elements || !elements.length )
return;

var element, fileInput;

for ( var i in elements ) {
for ( var i = elements.length; i--; ) {
element = elements[ i ];

if ( element.type == 'hbox' || element.type == 'vbox' || element.type == 'fieldset' )
Expand Down

0 comments on commit 8ad32fe

Please sign in to comment.