Edit File by line
/home/barbar84/www/wp-conte.../plugins/file-man.../applicat.../library/js
File: elFinder.options.js
/**
[0] Fix | Delete
* Default elFinder config
[1] Fix | Delete
*
[2] Fix | Delete
* @type Object
[3] Fix | Delete
* @autor Dmitry (dio) Levashov
[4] Fix | Delete
*/
[5] Fix | Delete
elFinder.prototype._options = {
[6] Fix | Delete
/**
[7] Fix | Delete
* URLs of 3rd party libraries CDN
[8] Fix | Delete
*
[9] Fix | Delete
* @type Object
[10] Fix | Delete
*/
[11] Fix | Delete
cdns : {
[12] Fix | Delete
// for editor etc.
[13] Fix | Delete
ace : 'https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0',
[14] Fix | Delete
codemirror : 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7',
[15] Fix | Delete
ckeditor : 'https://cdnjs.cloudflare.com/ajax/libs/ckeditor/4.21.0',
[16] Fix | Delete
ckeditor5 : 'https://cdn.ckeditor.com/ckeditor5/38.0.1',
[17] Fix | Delete
tinymce : 'https://cdnjs.cloudflare.com/ajax/libs/tinymce/6.4.2',
[18] Fix | Delete
simplemde : 'https://cdnjs.cloudflare.com/ajax/libs/simplemde/1.11.2',
[19] Fix | Delete
fabric : 'https://cdnjs.cloudflare.com/ajax/libs/fabric.js/5.3.1',
[20] Fix | Delete
fabric16 : 'https://cdnjs.cloudflare.com/ajax/libs/fabric.js/1.6.7',
[21] Fix | Delete
tui : 'https://uicdn.toast.com',
[22] Fix | Delete
// for quicklook etc.
[23] Fix | Delete
hls : 'https://cdnjs.cloudflare.com/ajax/libs/hls.js/1.4.4/hls.min.js',
[24] Fix | Delete
dash : 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/4.7.0/dash.all.min.js',
[25] Fix | Delete
flv : 'https://cdnjs.cloudflare.com/ajax/libs/flv.js/1.6.2/flv.min.js',
[26] Fix | Delete
videojs : 'https://cdnjs.cloudflare.com/ajax/libs/video.js/8.3.0',
[27] Fix | Delete
prettify : 'https://cdn.jsdelivr.net/gh/google/code-prettify@e006587b4a893f0281e9dc9a53001c7ed584d4e7/loader/run_prettify.js',
[28] Fix | Delete
psd : 'https://cdnjs.cloudflare.com/ajax/libs/psd.js/3.4.0/psd.min.js',
[29] Fix | Delete
rar : 'https://cdn.jsdelivr.net/gh/nao-pon/rar.js@6cef13ec66dd67992fc7f3ea22f132d770ebaf8b/rar.min.js',
[30] Fix | Delete
zlibUnzip : 'https://cdn.jsdelivr.net/gh/imaya/zlib.js@0.3.1/bin/unzip.min.js', // need check unzipFiles() in quicklook.plugins.js when update
[31] Fix | Delete
zlibGunzip : 'https://cdn.jsdelivr.net/gh/imaya/zlib.js@0.3.1/bin/gunzip.min.js',
[32] Fix | Delete
bzip2 : 'https://cdn.jsdelivr.net/gh/nao-pon/bzip2.js@0.8.0/bzip2.js',
[33] Fix | Delete
marked : 'https://cdnjs.cloudflare.com/ajax/libs/marked/5.0.4/marked.min.js',
[34] Fix | Delete
sparkmd5 : 'https://cdnjs.cloudflare.com/ajax/libs/spark-md5/3.0.2/spark-md5.min.js',
[35] Fix | Delete
jssha : 'https://cdnjs.cloudflare.com/ajax/libs/jsSHA/3.3.0/sha.min.js',
[36] Fix | Delete
amr : 'https://cdn.jsdelivr.net/gh/yxl/opencore-amr-js@dcf3d2b5f384a1d9ded2a54e4c137a81747b222b/js/amrnb.js',
[37] Fix | Delete
tiff : 'https://cdn.jsdelivr.net/gh/seikichi/tiff.js@545ede3ee46b5a5bc5f06d65954e775aa2a64017/tiff.min.js'
[38] Fix | Delete
},
[39] Fix | Delete
[40] Fix | Delete
/**
[41] Fix | Delete
* Connector url. Required!
[42] Fix | Delete
*
[43] Fix | Delete
* @type String
[44] Fix | Delete
*/
[45] Fix | Delete
url : '',
[46] Fix | Delete
[47] Fix | Delete
/**
[48] Fix | Delete
* Ajax request type.
[49] Fix | Delete
*
[50] Fix | Delete
* @type String
[51] Fix | Delete
* @default "get"
[52] Fix | Delete
*/
[53] Fix | Delete
requestType : 'get',
[54] Fix | Delete
[55] Fix | Delete
/**
[56] Fix | Delete
* Use CORS to connector url
[57] Fix | Delete
*
[58] Fix | Delete
* @type Boolean|null true|false|null(Auto detect)
[59] Fix | Delete
*/
[60] Fix | Delete
cors : null,
[61] Fix | Delete
[62] Fix | Delete
/**
[63] Fix | Delete
* Array of header names to return parrot out in HTTP headers received from the server
[64] Fix | Delete
*
[65] Fix | Delete
* @type Array
[66] Fix | Delete
*/
[67] Fix | Delete
parrotHeaders : [],
[68] Fix | Delete
[69] Fix | Delete
/**
[70] Fix | Delete
* Maximum number of concurrent connections on request
[71] Fix | Delete
*
[72] Fix | Delete
* @type Number
[73] Fix | Delete
* @default 3
[74] Fix | Delete
*/
[75] Fix | Delete
requestMaxConn : 3,
[76] Fix | Delete
[77] Fix | Delete
/**
[78] Fix | Delete
* Transport to send request to backend.
[79] Fix | Delete
* Required for future extensions using websockets/webdav etc.
[80] Fix | Delete
* Must be an object with "send" method.
[81] Fix | Delete
* transport.send must return $.Deferred() object
[82] Fix | Delete
*
[83] Fix | Delete
* @type Object
[84] Fix | Delete
* @default null
[85] Fix | Delete
* @example
[86] Fix | Delete
* transport : {
[87] Fix | Delete
* init : function(elfinderInstance) { },
[88] Fix | Delete
* send : function(options) {
[89] Fix | Delete
* var dfrd = $.Deferred();
[90] Fix | Delete
* // connect to backend ...
[91] Fix | Delete
* return dfrd;
[92] Fix | Delete
* },
[93] Fix | Delete
* upload : function(data) {
[94] Fix | Delete
* var dfrd = $.Deferred();
[95] Fix | Delete
* // upload ...
[96] Fix | Delete
* return dfrd;
[97] Fix | Delete
* }
[98] Fix | Delete
*
[99] Fix | Delete
* }
[100] Fix | Delete
**/
[101] Fix | Delete
transport : {},
[102] Fix | Delete
[103] Fix | Delete
/**
[104] Fix | Delete
* URL to upload file to.
[105] Fix | Delete
* If not set - connector URL will be used
[106] Fix | Delete
*
[107] Fix | Delete
* @type String
[108] Fix | Delete
* @default ''
[109] Fix | Delete
*/
[110] Fix | Delete
urlUpload : '',
[111] Fix | Delete
[112] Fix | Delete
/**
[113] Fix | Delete
* Allow to drag and drop to upload files
[114] Fix | Delete
*
[115] Fix | Delete
* @type Boolean|String
[116] Fix | Delete
* @default 'auto'
[117] Fix | Delete
*/
[118] Fix | Delete
dragUploadAllow : 'auto',
[119] Fix | Delete
[120] Fix | Delete
/**
[121] Fix | Delete
* Confirmation dialog displayed at the time of overwriting upload
[122] Fix | Delete
*
[123] Fix | Delete
* @type Boolean
[124] Fix | Delete
* @default true
[125] Fix | Delete
*/
[126] Fix | Delete
overwriteUploadConfirm : true,
[127] Fix | Delete
[128] Fix | Delete
/**
[129] Fix | Delete
* Max size of chunked data of file upload
[130] Fix | Delete
*
[131] Fix | Delete
* @type Number
[132] Fix | Delete
* @default 10485760(10MB)
[133] Fix | Delete
*/
[134] Fix | Delete
uploadMaxChunkSize : 10485760,
[135] Fix | Delete
[136] Fix | Delete
/**
[137] Fix | Delete
* Regular expression of file name to exclude when uploading folder
[138] Fix | Delete
*
[139] Fix | Delete
* @type Object
[140] Fix | Delete
* @default { win: /^(?:desktop\.ini|thumbs\.db)$/i, mac: /^\.ds_store$/i }
[141] Fix | Delete
*/
[142] Fix | Delete
folderUploadExclude : {
[143] Fix | Delete
win: /^(?:desktop\.ini|thumbs\.db)$/i,
[144] Fix | Delete
mac: /^\.ds_store$/i
[145] Fix | Delete
},
[146] Fix | Delete
[147] Fix | Delete
/**
[148] Fix | Delete
* Timeout for upload using iframe
[149] Fix | Delete
*
[150] Fix | Delete
* @type Number
[151] Fix | Delete
* @default 0 - no timeout
[152] Fix | Delete
*/
[153] Fix | Delete
iframeTimeout : 0,
[154] Fix | Delete
[155] Fix | Delete
/**
[156] Fix | Delete
* Data to append to all requests and to upload files
[157] Fix | Delete
*
[158] Fix | Delete
* @type Object
[159] Fix | Delete
* @default {}
[160] Fix | Delete
*/
[161] Fix | Delete
customData : {},
[162] Fix | Delete
[163] Fix | Delete
/**
[164] Fix | Delete
* Event listeners to bind on elFinder init
[165] Fix | Delete
*
[166] Fix | Delete
* @type Object
[167] Fix | Delete
* @default {}
[168] Fix | Delete
*/
[169] Fix | Delete
handlers : {},
[170] Fix | Delete
[171] Fix | Delete
/**
[172] Fix | Delete
* Any custom headers to send across every ajax request
[173] Fix | Delete
*
[174] Fix | Delete
* @type Object
[175] Fix | Delete
* @default {}
[176] Fix | Delete
*/
[177] Fix | Delete
customHeaders : {},
[178] Fix | Delete
[179] Fix | Delete
/**
[180] Fix | Delete
* Any custom xhrFields to send across every ajax request
[181] Fix | Delete
*
[182] Fix | Delete
* @type Object
[183] Fix | Delete
* @default {}
[184] Fix | Delete
*/
[185] Fix | Delete
xhrFields : {},
[186] Fix | Delete
[187] Fix | Delete
/**
[188] Fix | Delete
* Interface language
[189] Fix | Delete
*
[190] Fix | Delete
* @type String
[191] Fix | Delete
* @default "en"
[192] Fix | Delete
*/
[193] Fix | Delete
lang : 'en',
[194] Fix | Delete
[195] Fix | Delete
/**
[196] Fix | Delete
* Base URL of elfFinder library starting from Manager HTML
[197] Fix | Delete
* Auto detect when empty value
[198] Fix | Delete
*
[199] Fix | Delete
* @type String
[200] Fix | Delete
* @default ""
[201] Fix | Delete
*/
[202] Fix | Delete
baseUrl : '',
[203] Fix | Delete
[204] Fix | Delete
/**
[205] Fix | Delete
* Base URL of i18n js files
[206] Fix | Delete
* baseUrl + "js/i18n/" when empty value
[207] Fix | Delete
*
[208] Fix | Delete
* @type String
[209] Fix | Delete
* @default ""
[210] Fix | Delete
*/
[211] Fix | Delete
i18nBaseUrl : '',
[212] Fix | Delete
[213] Fix | Delete
/**
[214] Fix | Delete
* Base URL of worker js files
[215] Fix | Delete
* baseUrl + "js/worker/" when empty value
[216] Fix | Delete
*
[217] Fix | Delete
* @type String
[218] Fix | Delete
* @default ""
[219] Fix | Delete
*/
[220] Fix | Delete
workerBaseUrl : '',
[221] Fix | Delete
[222] Fix | Delete
/**
[223] Fix | Delete
* Auto load required CSS
[224] Fix | Delete
* `false` to disable this function or
[225] Fix | Delete
* CSS URL Array to load additional CSS files
[226] Fix | Delete
*
[227] Fix | Delete
* @type Boolean|Array
[228] Fix | Delete
* @default true
[229] Fix | Delete
*/
[230] Fix | Delete
cssAutoLoad : true,
[231] Fix | Delete
[232] Fix | Delete
/**
[233] Fix | Delete
* Theme to load
[234] Fix | Delete
* {"themeid" : "Theme CSS URL"} or
[235] Fix | Delete
* {"themeid" : "Theme manifesto.json URL"} or
[236] Fix | Delete
* Theme manifesto.json Object
[237] Fix | Delete
* {
[238] Fix | Delete
* "themeid" : {
[239] Fix | Delete
* "name":"Theme Name",
[240] Fix | Delete
* "cssurls":"Theme CSS URL",
[241] Fix | Delete
* "author":"Author Name",
[242] Fix | Delete
* "email":"Author Email",
[243] Fix | Delete
* "license":"License",
[244] Fix | Delete
* "link":"Web Site URL",
[245] Fix | Delete
* "image":"Screen Shot URL",
[246] Fix | Delete
* "description":"Description"
[247] Fix | Delete
* }
[248] Fix | Delete
* }
[249] Fix | Delete
*
[250] Fix | Delete
* @type Object
[251] Fix | Delete
*/
[252] Fix | Delete
themes : {},
[253] Fix | Delete
[254] Fix | Delete
/**
[255] Fix | Delete
* Theme id to initial theme
[256] Fix | Delete
*
[257] Fix | Delete
* @type String|Null
[258] Fix | Delete
*/
[259] Fix | Delete
theme : null,
[260] Fix | Delete
[261] Fix | Delete
/**
[262] Fix | Delete
* Maximum value of error dialog open at the same time
[263] Fix | Delete
*
[264] Fix | Delete
* @type Number
[265] Fix | Delete
*/
[266] Fix | Delete
maxErrorDialogs : 5,
[267] Fix | Delete
[268] Fix | Delete
/**
[269] Fix | Delete
* Additional css class for filemanager node.
[270] Fix | Delete
*
[271] Fix | Delete
* @type String
[272] Fix | Delete
*/
[273] Fix | Delete
cssClass : '',
[274] Fix | Delete
[275] Fix | Delete
/**
[276] Fix | Delete
* Active commands list. '*' means all of the commands that have been load.
[277] Fix | Delete
* If some required commands will be missed here, elFinder will add its
[278] Fix | Delete
*
[279] Fix | Delete
* @type Array
[280] Fix | Delete
*/
[281] Fix | Delete
commands : ['*'],
[282] Fix | Delete
// Available commands list
[283] Fix | Delete
//commands : [
[284] Fix | Delete
// 'archive', 'back', 'chmod', 'colwidth', 'copy', 'cut', 'download', 'duplicate', 'edit', 'extract',
[285] Fix | Delete
// 'forward', 'fullscreen', 'getfile', 'help', 'home', 'info', 'mkdir', 'mkfile', 'netmount', 'netunmount',
[286] Fix | Delete
// 'open', 'opendir', 'paste', 'places', 'quicklook', 'reload', 'rename', 'resize', 'restore', 'rm',
[287] Fix | Delete
// 'search', 'sort', 'up', 'upload', 'view', 'zipdl'
[288] Fix | Delete
//],
[289] Fix | Delete
[290] Fix | Delete
/**
[291] Fix | Delete
* Commands options.
[292] Fix | Delete
*
[293] Fix | Delete
* @type Object
[294] Fix | Delete
**/
[295] Fix | Delete
commandsOptions : {
[296] Fix | Delete
// // configure shortcuts of any command
[297] Fix | Delete
// // add `shortcuts` property into each command
[298] Fix | Delete
// any_command_name : {
[299] Fix | Delete
// shortcuts : [] // for disable this command's shortcuts
[300] Fix | Delete
// },
[301] Fix | Delete
// any_command_name : {
[302] Fix | Delete
// shortcuts : function(fm, shortcuts) {
[303] Fix | Delete
// // for add `CTRL + E` for this command action
[304] Fix | Delete
// shortcuts[0]['pattern'] += ' ctrl+e';
[305] Fix | Delete
// return shortcuts;
[306] Fix | Delete
// }
[307] Fix | Delete
// },
[308] Fix | Delete
// any_command_name : {
[309] Fix | Delete
// shortcuts : function(fm, shortcuts) {
[310] Fix | Delete
// // for full customize of this command's shortcuts
[311] Fix | Delete
// return [ { pattern: 'ctrl+e ctrl+down numpad_enter' + (fm.OS != 'mac' && ' enter') } ];
[312] Fix | Delete
// }
[313] Fix | Delete
// },
[314] Fix | Delete
// "getfile" command options.
[315] Fix | Delete
getfile : {
[316] Fix | Delete
onlyURL : false,
[317] Fix | Delete
// allow to return multiple files info
[318] Fix | Delete
multiple : false,
[319] Fix | Delete
// allow to return filers info
[320] Fix | Delete
folders : false,
[321] Fix | Delete
// action after callback (""/"close"/"destroy")
[322] Fix | Delete
oncomplete : '',
[323] Fix | Delete
// action when callback is fail (""/"close"/"destroy")
[324] Fix | Delete
onerror : '',
[325] Fix | Delete
// get path before callback call
[326] Fix | Delete
getPath : true,
[327] Fix | Delete
// get image sizes before callback call
[328] Fix | Delete
getImgSize : false
[329] Fix | Delete
},
[330] Fix | Delete
open : {
[331] Fix | Delete
// HTTP method that request to the connector when item URL is not valid URL.
[332] Fix | Delete
// If you set to "get" will be displayed request parameter in the browser's location field
[333] Fix | Delete
// so if you want to conceal its parameters should be given "post".
[334] Fix | Delete
// Nevertheless, please specify "get" if you want to enable the partial request by HTTP Range header.
[335] Fix | Delete
method : 'post',
[336] Fix | Delete
// Where to open into : 'window'(default), 'tab' or 'tabs'
[337] Fix | Delete
// 'tabs' opens in each tabs
[338] Fix | Delete
into : 'window',
[339] Fix | Delete
// Default command list of action when select file
[340] Fix | Delete
// String value that is 'Command Name' or 'Command Name1/CommandName2...'
[341] Fix | Delete
selectAction : 'open'
[342] Fix | Delete
},
[343] Fix | Delete
opennew : {
[344] Fix | Delete
// URL of to open elFinder manager
[345] Fix | Delete
// Default '' : Origin URL
[346] Fix | Delete
url : '',
[347] Fix | Delete
// Use search query of origin URL
[348] Fix | Delete
useOriginQuery : true
[349] Fix | Delete
},
[350] Fix | Delete
// "upload" command options.
[351] Fix | Delete
upload : {
[352] Fix | Delete
// Open elFinder upload dialog: 'button' OR Open system OS upload dialog: 'uploadbutton'
[353] Fix | Delete
ui : 'button'
[354] Fix | Delete
},
[355] Fix | Delete
// "download" command options.
[356] Fix | Delete
download : {
[357] Fix | Delete
// max request to download files when zipdl disabled
[358] Fix | Delete
maxRequests : 10,
[359] Fix | Delete
// minimum count of files to use zipdl
[360] Fix | Delete
minFilesZipdl : 2
[361] Fix | Delete
},
[362] Fix | Delete
// "quicklook" command options.
[363] Fix | Delete
quicklook : {
[364] Fix | Delete
autoplay : true,
[365] Fix | Delete
width : 450,
[366] Fix | Delete
height : 300,
[367] Fix | Delete
// ControlsList of HTML5 audio/video preview
[368] Fix | Delete
// see https://googlechrome.github.io/samples/media/controlslist.html
[369] Fix | Delete
mediaControlsList : '', // e.g. 'nodownload nofullscreen noremoteplayback'
[370] Fix | Delete
// Show toolbar of PDF preview (with <embed> tag)
[371] Fix | Delete
pdfToolbar : true,
[372] Fix | Delete
// Maximum lines to preview at initial
[373] Fix | Delete
textInitialLines : 100,
[374] Fix | Delete
// Maximum lines to preview by prettify
[375] Fix | Delete
prettifyMaxLines : 300,
[376] Fix | Delete
// quicklook window must be contained in elFinder node on window open (true|false)
[377] Fix | Delete
contain : false,
[378] Fix | Delete
// preview window into NavDock (0 : undocked | 1 : docked(show) | 2 : docked(hide))
[379] Fix | Delete
docked : 0,
[380] Fix | Delete
// Docked preview height ('auto' or Number of pixel) 'auto' is setted to the Navbar width
[381] Fix | Delete
dockHeight : 'auto',
[382] Fix | Delete
// media auto play when docked
[383] Fix | Delete
dockAutoplay : false,
[384] Fix | Delete
// Google Maps API key (Require Maps JavaScript API)
[385] Fix | Delete
googleMapsApiKey : '',
[386] Fix | Delete
// Google Maps API Options
[387] Fix | Delete
googleMapsOpts : {
[388] Fix | Delete
maps : {},
[389] Fix | Delete
kml : {
[390] Fix | Delete
suppressInfoWindows : false,
[391] Fix | Delete
preserveViewport : false
[392] Fix | Delete
}
[393] Fix | Delete
},
[394] Fix | Delete
// ViewerJS (https://viewerjs.org/) Options
[395] Fix | Delete
// To enable this you need to place ViewerJS on the same server as elFinder and specify that URL in `url`.
[396] Fix | Delete
viewerjs : {
[397] Fix | Delete
url: '', // Example '/ViewerJS/index.html'
[398] Fix | Delete
mimes: ['application/pdf', 'application/vnd.oasis.opendocument.text', 'application/vnd.oasis.opendocument.spreadsheet', 'application/vnd.oasis.opendocument.presentation'],
[399] Fix | Delete
pdfNative: true // Use Native PDF Viewer first
[400] Fix | Delete
},
[401] Fix | Delete
// MIME types to CAD-Files and 3D-Models online viewer on sharecad.org
[402] Fix | Delete
// Example ['image/vnd.dwg', 'image/vnd.dxf', 'model/vnd.dwf', 'application/vnd.hp-hpgl', 'application/plt', 'application/step', 'model/iges', 'application/vnd.ms-pki.stl', 'application/sat', 'image/cgm', 'application/x-msmetafile']
[403] Fix | Delete
sharecadMimes : [],
[404] Fix | Delete
// MIME types to use Google Docs online viewer
[405] Fix | Delete
// Example ['application/pdf', 'image/tiff', 'application/vnd.ms-office', 'application/msword', 'application/vnd.ms-word', 'application/vnd.ms-excel', 'application/vnd.ms-powerpoint', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/postscript', 'application/rtf']
[406] Fix | Delete
googleDocsMimes : [],
[407] Fix | Delete
// MIME types to use Microsoft Office Online viewer
[408] Fix | Delete
// Example ['application/msword', 'application/vnd.ms-word', 'application/vnd.ms-excel', 'application/vnd.ms-powerpoint', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/vnd.oasis.opendocument.text', 'application/vnd.oasis.opendocument.spreadsheet', 'application/vnd.oasis.opendocument.presentation']
[409] Fix | Delete
// These MIME types override "googleDocsMimes"
[410] Fix | Delete
officeOnlineMimes : [],
[411] Fix | Delete
// File size threshold when using the dim command for obtain the image size necessary to image preview
[412] Fix | Delete
getDimThreshold : '200K',
[413] Fix | Delete
// Max filesize to show filenames of the zip/tar/gzip/bzip file
[414] Fix | Delete
unzipMaxSize : '50M',
[415] Fix | Delete
// MIME-Type regular expression that does not check empty files
[416] Fix | Delete
mimeRegexNotEmptyCheck : /^application\/vnd\.google-apps\./
[417] Fix | Delete
},
[418] Fix | Delete
// "edit" command options.
[419] Fix | Delete
edit : {
[420] Fix | Delete
// dialog width, integer(px) or integer+'%' (example: 650, '80%' ...)
[421] Fix | Delete
dialogWidth : void(0),
[422] Fix | Delete
// dialog height, integer(px) or integer+'%' (example: 650, '80%' ...)
[423] Fix | Delete
dialogHeight : void(0),
[424] Fix | Delete
// list of allowed mimetypes to edit of text files
[425] Fix | Delete
// if empty - any text files can be edited
[426] Fix | Delete
mimes : [],
[427] Fix | Delete
// MIME-types to unselected as default of "File types to enable with "New file"" in preferences
[428] Fix | Delete
mkfileHideMimes : [],
[429] Fix | Delete
// MIME-types of text file to make empty file
[430] Fix | Delete
makeTextMimes : ['text/plain', 'text/css', 'text/html'],
[431] Fix | Delete
// Use the editor stored in the browser
[432] Fix | Delete
// This value allowd overwrite with user preferences
[433] Fix | Delete
useStoredEditor : false,
[434] Fix | Delete
// Open the maximized editor window
[435] Fix | Delete
// This value allowd overwrite with user preferences
[436] Fix | Delete
editorMaximized : false,
[437] Fix | Delete
// edit files in wysisyg's
[438] Fix | Delete
editors : [
[439] Fix | Delete
// {
[440] Fix | Delete
// /**
[441] Fix | Delete
// * editor info
[442] Fix | Delete
// * @type Object
[443] Fix | Delete
// */
[444] Fix | Delete
// info : { name: 'Editor Name' },
[445] Fix | Delete
// /**
[446] Fix | Delete
// * files mimetypes allowed to edit in current wysisyg
[447] Fix | Delete
// * @type Array
[448] Fix | Delete
// */
[449] Fix | Delete
// mimes : ['text/html'],
[450] Fix | Delete
// /**
[451] Fix | Delete
// * HTML element for editing area (optional for text editor)
[452] Fix | Delete
// * @type String
[453] Fix | Delete
// */
[454] Fix | Delete
// html : '<textarea></textarea>',
[455] Fix | Delete
// /**
[456] Fix | Delete
// * Initialize editing area node (optional for text editor)
[457] Fix | Delete
// *
[458] Fix | Delete
// * @param String dialog DOM id
[459] Fix | Delete
// * @param Object target file object
[460] Fix | Delete
// * @param String target file content (text or Data URI Scheme(binary file))
[461] Fix | Delete
// * @param Object elFinder instance
[462] Fix | Delete
// * @type Function
[463] Fix | Delete
// */
[464] Fix | Delete
// init : function(id, file, content, fm) {
[465] Fix | Delete
// $(this).attr('id', id + '-text').val(content);
[466] Fix | Delete
// },
[467] Fix | Delete
// /**
[468] Fix | Delete
// * Get edited contents (optional for text editor)
[469] Fix | Delete
// * @type Function
[470] Fix | Delete
// */
[471] Fix | Delete
// getContent : function() {
[472] Fix | Delete
// return $(this).val();
[473] Fix | Delete
// },
[474] Fix | Delete
// /**
[475] Fix | Delete
// * Called when "edit" dialog loaded.
[476] Fix | Delete
// * Place to init wysisyg.
[477] Fix | Delete
// * Can return wysisyg instance
[478] Fix | Delete
// *
[479] Fix | Delete
// * @param DOMElement textarea node
[480] Fix | Delete
// * @return Object editor instance|jQuery.Deferred(return instance on resolve())
[481] Fix | Delete
// */
[482] Fix | Delete
// load : function(textarea) { },
[483] Fix | Delete
// /**
[484] Fix | Delete
// * Called before "edit" dialog closed.
[485] Fix | Delete
// * Place to destroy wysisyg instance.
[486] Fix | Delete
// *
[487] Fix | Delete
// * @param DOMElement textarea node
[488] Fix | Delete
// * @param Object wysisyg instance (if was returned by "load" callback)
[489] Fix | Delete
// * @return void
[490] Fix | Delete
// */
[491] Fix | Delete
// close : function(textarea, instance) { },
[492] Fix | Delete
// /**
[493] Fix | Delete
// * Called before file content send to backend.
[494] Fix | Delete
// * Place to update textarea content if needed.
[495] Fix | Delete
// *
[496] Fix | Delete
// * @param DOMElement textarea node
[497] Fix | Delete
// * @param Object wysisyg instance (if was returned by "load" callback)
[498] Fix | Delete
// * @return void
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function