diff --git a/main/inc/lib/javascript/ckeditor/plugins/video/dialogs/video.js b/main/inc/lib/javascript/ckeditor/plugins/video/dialogs/video.js index ae57da3b45..07ebb52e34 100644 --- a/main/inc/lib/javascript/ckeditor/plugins/video/dialogs/video.js +++ b/main/inc/lib/javascript/ckeditor/plugins/video/dialogs/video.js @@ -192,48 +192,6 @@ CKEDITOR.dialog.add( 'video', function ( editor ) id : 'info', elements : [ - { - type : 'hbox', - widths: [ '', '100px'], - children : [ - { - type : 'text', - id : 'poster', - label : lang.poster, - commit : commitValue, - setup : loadValue, - onChange : function() - { - var dialog = this.getDialog(), - newUrl = this.getValue(); - - //Update preview image - if ( newUrl.length > 0 ) //Prevent from load before onShow - { - dialog = this.getDialog(); - var preview = dialog.previewImage; - - preview.on( 'load', onImgLoadEvent, dialog ); - preview.on( 'error', onImgLoadErrorEvent, dialog ); - preview.on( 'abort', onImgLoadErrorEvent, dialog ); - preview.setAttribute( 'src', newUrl ); - } - } - }, - { - type : 'button', - id : 'browse', - hidden : 'true', - style : 'display:inline-block;margin-top:10px;', - filebrowser : - { - action : 'Browse', - target: 'info:poster', - url: editor.config.filebrowserImageBrowseUrl || editor.config.filebrowserBrowseUrl - }, - label : editor.lang.common.browseServer - }] - }, { type : 'hbox', widths: [ '33%', '33%', '33%'], @@ -341,6 +299,48 @@ CKEDITOR.dialog.add( 'video', function ( editor ) commit : commitSrc, setup : loadSrc }] + }, + { + type : 'hbox', + widths: [ '', '100px'], + children : [ + { + type : 'text', + id : 'poster', + label : lang.poster, + commit : commitValue, + setup : loadValue, + onChange : function() + { + var dialog = this.getDialog(), + newUrl = this.getValue(); + + //Update preview image + if ( newUrl.length > 0 ) //Prevent from load before onShow + { + dialog = this.getDialog(); + var preview = dialog.previewImage; + + preview.on( 'load', onImgLoadEvent, dialog ); + preview.on( 'error', onImgLoadErrorEvent, dialog ); + preview.on( 'abort', onImgLoadErrorEvent, dialog ); + preview.setAttribute( 'src', newUrl ); + } + } + }, + { + type : 'button', + id : 'browse', + hidden : 'true', + style : 'display:inline-block;margin-top:10px;', + filebrowser : + { + action : 'Browse', + target: 'info:poster', + url: editor.config.filebrowserImageBrowseUrl || editor.config.filebrowserBrowseUrl + }, + label : editor.lang.common.browseServer + }] } ] }