Search results

FileManagerSettings API in JavaScript RichTextEditor API control

Configures the file manager settings of the RichTextEditor.

Properties

ajaxSettings

AjaxSettingsModel

Specifies the AJAX settings of the file manager.

Defaults to {getImageUrl: null;url: null;uploadUrl: null;downloadUrl: null;}

allowDragAndDrop

boolean

Enables or disables drag-and-drop of files.

Defaults to false

contextMenuSettings

ContextMenuSettingsModel

Specifies the context menu settings of the file manager.

Defaults to { file: [‘Open’, ’|’, ‘Cut’, ‘Copy’, ’|’, ‘Delete’, ‘Rename’, ’|’, ‘Details’], folder: [‘Open’, ’|’, ‘Cut’, ‘Copy’, ‘Paste’, ’|’, ‘Delete’, ‘Rename’, ’|’, ‘Details’], layout: [‘SortBy’, ‘View’, ‘Refresh’, ’|’, ‘Paste’, ’|’, ‘NewFolder’, ‘Upload’, ’|’, ‘Details’, ’|’, ‘SelectAll’], visible: true}

cssClass

string

Specifies the root CSS class of the file manager that allows you to customize the appearance by overriding the styles.

Defaults to

detailsViewSettings

DetailsViewSettingsModel

Specifies the details view settings of the file manager.

Defaults to { columns: [{ field: ‘name’, headerText: ‘Name’, minWidth: 120, template: ’${name}’, customAttributes: { class: ‘e-fe-grid-name’}}, { field: ’fmmodified’, headerText: ‘DateModified’, type: ‘dateTime’, format: ‘MMMM dd, yyyy HH:mm’, minWidth: 120, width: ‘190’ }, { field: ‘size’, headerText: ‘Size’, minWidth: 90, width: ‘110’, template: ’${size}’ }]}

enable

boolean

Specifies whether to enable the file manager in RichTextEditor.

Defaults to false

Specifies the navigation pane settings of the file manager.

Defaults to { maxWidth: ‘650px’, minWidth: ‘240px’, visible: true }

path

string

Specifies the current path of the file manager.

Defaults to ’/’

rootAliasName

string

Specifies the root folder alias name in file manager

Defaults to null

searchSettings

SearchSettingsModel

Specifies the search settings of the file manager.

Defaults to { allowSearchOnTyping: true, filterType: ‘contains’, ignoreCase: true}

showFileExtension

boolean

Shows or hides the file extension in file manager.

Defaults to true

showHiddenItems

boolean

Shows or hides the files and folders that are marked as hidden.

Defaults to false

showThumbnail

boolean

Shows or hides the thumbnail images in large icons view.

Defaults to true

sortOrder

SortOrder

Specifies a value that indicates whether the folders and files are sorted in the ascending or descending order, or they are not sorted at all. The available types of sort orders are, None - Indicates that the folders and files are not sorted. Ascending - Indicates that the folders and files are sorted in the ascending order. Descending - Indicates that the folders and files are sorted in the descending order.

Defaults to ‘Ascending’

toolbarSettings

FileToolbarSettingsModel

Specifies the group of items aligned horizontally in the toolbar.

Defaults to { visible: true, items: [‘NewFolder’, ‘Upload’, ‘Cut’, ‘Copy’, ‘Paste’, ‘Delete’, ‘Download’, ‘Rename’, ‘SortBy’, ‘Refresh’, ‘Selection’, ‘View’, ‘Details’] }

uploadSettings

UploadSettingsModel

Specifies the upload settings for the file manager.

Defaults to { autoUpload: true, minFileSize: 0, maxFileSize: 30000000, allowedExtensions: ”, autoClose: false }

view

ViewType

Specifies the initial view of the file manager. With the help of this property, initial view can be changed to details or largeicons view. The available views are:

  • LargeIcons
  • Details

Defaults to ‘LargeIcons’

Events

beforeSend

EmitType<BeforeSendEventArgs>

Event triggers before sending the AJAX request to the server. Set the cancel argument to true to cancel the request.