CKEDITOR.dialog.definition.fileButton
The definition of a button for submitting the file in a file upload input.
This class is not really part of the API. It just illustrates the properties that developers can use to define and create a button for submitting the file in a file upload input.
Once the dialog is opened, the created element becomes a CKEDITOR.ui.dialog.fileButton object and can be accessed with CKEDITOR.dialog.getContentElement.
For a complete example of dialog definition, please check CKEDITOR.dialog.add.
Filtering
Properties
align : StringCKEDITOR.dialog.definition.fileButton#alignHorizontal alignment (in the container) of the UI element.
className : StringCKEDITOR.dialog.definition.fileButton#classNameCSS class names to append to the UI element.
commit : FunctionCKEDITOR.dialog.definition.fileButton#commitFunction to execute whenever the UI element's parent dialog's CKEDITOR.dialog.commitContent method is executed. It usually takes care of the respective UI element as a standalone element.
filebrowser : StringCKEDITOR.dialog.definition.fileButton#filebrowserThe instruction for CKEditor how to deal with file upload. By default, the file and fileButton elements will not work "as expected" if this attribute is not set.
// Update field with id 'txtUrl' in the 'tab1' tab when file is uploaded. filebrowser: 'tab1:txtUrl' // Call custom onSelect function when file is successfully uploaded. filebrowser: { onSelect: function( fileUrl, data ) { alert( 'Successfully uploaded: ' + fileUrl ); } }/Objectfor : StringCKEDITOR.dialog.definition.fileButton#forAn array that contains pageId and elementId of the file upload input element for which this button is created.
[ pageId, elementId ]id : StringCKEDITOR.dialog.definition.fileButton#idThe ID of the UI element.
label : StringCKEDITOR.dialog.definition.fileButton#labelThe label of the UI element.
onHide : FunctionCKEDITOR.dialog.definition.fileButton#onHideFunction to execute whenever the UI element's parent dialog is closed.
onLoad : FunctionCKEDITOR.dialog.definition.fileButton#onLoadFunction to execute the first time the UI element is displayed.
onShow : FunctionCKEDITOR.dialog.definition.fileButton#onShowFunction to execute whenever the UI element's parent dialog is displayed.
requiredContent : String | Object | styleCKEDITOR.dialog.definition.fileButton#requiredContentThe content that needs to be allowed to enable this UI element. All formats accepted by CKEDITOR.filter.check may be used.
When all UI elements in a tab are disabled, this tab will be disabled automatically.
setup : FunctionCKEDITOR.dialog.definition.fileButton#setupFunction to execute whenever the UI element's parent dialog's CKEDITOR.dialog.setupContent method is executed. It usually takes care of the respective UI element as a standalone element.
style : StringCKEDITOR.dialog.definition.fileButton#styleInline CSS classes to append to the UI element.
title : StringCKEDITOR.dialog.definition.fileButton#titleThe popup label of the UI element.
type : StringCKEDITOR.dialog.definition.fileButton#typeThe type of the UI element. Required.
validate : FunctionCKEDITOR.dialog.definition.fileButton#validate(Optional) The validation function.