4 * Copyright, Moxiecode Systems AB
5 * Released under LGPL License.
7 * License: http://www.tinymce.com/license
8 * Contributing: http://www.tinymce.com/contributing
11 /*global tinymce:true */
14 * This class creates a file picker control.
16 * @class tinymce.ui.FilePicker
17 * @extends tinymce.ui.ComboBox
19 define("tinymce/ui/FilePicker", [
21 ], function(ComboBox) {
24 return ComboBox.extend({
26 * Constructs a new control instance with the specified settings.
29 * @param {Object} settings Name/value object with settings.
31 init: function(settings) {
32 var self = this, editor = tinymce.activeEditor, fileBrowserCallback;
34 settings.spellcheck = false;
36 fileBrowserCallback = editor.settings.file_browser_callback;
37 if (fileBrowserCallback) {
38 settings.icon = 'browse';
40 settings.onaction = function() {
43 self.getEl('inp').value,
50 self._super(settings);