Class CKEDITOR.ui.dialog.file
Extends
CKEDITOR.ui.dialog.labeledElement.
Defined in: plugins/dialogui/plugin.js.
Constructor Attributes | Constructor Name and Description |
---|---|
CKEDITOR.ui.dialog.file(dialog, elementDefinition, htmlList)
A file upload input.
|
Field Attributes | Field Name and Description |
---|---|
Defines the onChange event for UI element definitions.
|
Method Attributes | Method Name and Description |
---|---|
Gets the <input> element of this file input.
|
|
reset()
Redraws the file input and resets the file path in the file input.
|
|
submit()
Uploads the file in the file input.
|
- Methods borrowed from class CKEDITOR.ui.dialog.labeledElement:
- getLabel, setLabel
- Methods borrowed from class CKEDITOR.ui.dialog.uiElement:
- accessKeyDown, accessKeyUp, disable, enable, focus, getDialog, getElement, getValue, isChanged, registerEvents, selectParentTab, setValue
Class Detail
CKEDITOR.ui.dialog.file(dialog, elementDefinition, htmlList)
Since:
3.0
A file upload input.
- Parameters:
- {CKEDITOR.dialog} dialog
- Parent dialog object.
- {CKEDITOR.dialog.uiElementDefinition} elementDefinition
- The element definition. Accepted fields:
- validate (Optional) The validation function.
- {Array} htmlList
- List of HTML code to output to.
Field Detail
{Object}
eventProcessors
Since:
3.0
Defines the onChange event for UI element definitions.
Method Detail
{CKEDITOR.dom.element}
getInputElement()
Since:
3.0
Gets the <input> element of this file input.
- Returns:
- {CKEDITOR.dom.element} The file input element.
{Undefined}
reset()
Since:
3.0
Redraws the file input and resets the file path in the file input.
The redraw logic is necessary because non-IE browsers tend to clear
the <iframe> containing the file input after closing the dialog.
{CKEDITOR.ui.dialog.file}
submit()
Since:
3.0
Uploads the file in the file input.
- Returns:
- {CKEDITOR.ui.dialog.file} This object.