vendor/assets/elfinder_OLD/js/elfinder.full.js
function(ql) {
				var fm      = ql.fm,
			mimes   = fm.arrayFlip(['text/html', 'application/xhtml+xml']),
			preview = ql.preview;
			
		preview.on(ql.evUpdate, function(e) {
			var file = e.file, jqxhr, loading;
			
			if (mimes[file.mime] && ql.dispInlineRegex.test(file.mime) && (!ql.options.getSizeMax || file.size <= ql.options.getSizeMax)) {
				e.stopImmediatePropagation();

				loading = $('<div class="elfinder-quicklook-info-data"> '+fm.i18n('nowLoading')+'<span class="elfinder-info-spinner"></div>').appendTo(ql.info.find('.elfinder-quicklook-info'));

				// stop loading on change file if not loaded yet
				preview.one('change', function() {
					jqxhr.state() == 'pending' && jqxhr.reject();
				}).addClass('elfinder-overflow-auto');
				
				jqxhr = fm.request({
					data           : {cmd : 'get', target : file.hash, conv : 1, _t : file.ts},
					options        : {type: 'get', cache : true},
					preventDefault : true
				})
				.done(function(data) {
					ql.hideinfo();
					var doc = $('<iframe class="elfinder-quicklook-preview-html"/>').appendTo(preview)[0].contentWindow.document;
					doc.open();
					doc.write(data.content);
					doc.close();
				})
				.always(function() {
					loading.remove();
				});
			}
		});
	}
function(ql) {
				var fm      = ql.fm,
			mimes   = fm.arrayFlip(['text/html', 'application/xhtml+xml']),
			preview = ql.preview;
			
		preview.on(ql.evUpdate, function(e) {
			var file = e.file, jqxhr, loading;
			
			if (mimes[file.mime] && ql.dispInlineRegex.test(file.mime) && (!ql.options.getSizeMax || file.size <= ql.options.getSizeMax)) {
				e.stopImmediatePropagation();

				loading = $('<div class="elfinder-quicklook-info-data"> '+fm.i18n('nowLoading')+'<span class="elfinder-info-spinner"></div>').appendTo(ql.info.find('.elfinder-quicklook-info'));

				// stop loading on change file if not loaded yet
				preview.one('change', function() {
					jqxhr.state() == 'pending' && jqxhr.reject();
				}).addClass('elfinder-overflow-auto');
				
				jqxhr = fm.request({
					data           : {cmd : 'get', target : file.hash, conv : 1, _t : file.ts},
					options        : {type: 'get', cache : true},
					preventDefault : true
				})
				.done(function(data) {
					ql.hideinfo();
					var doc = $('<iframe class="elfinder-quicklook-preview-html"/>').appendTo(preview)[0].contentWindow.document;
					doc.open();
					doc.write(data.content);
					doc.close();
				})
				.always(function() {
					loading.remove();
				});
			}
		});
	}
function ( ql ) { var fm = ql . fm , mimes = fm . arrayFlip ( [ 'text/html' , 'application/xhtml+xml' ] ) , preview = ql . preview ; preview . on ( ql . evUpdate , function ( e ) { var file = e . file , jqxhr , loading ; if ( mimes [ file . mime ] && ql . dispInlineRegex . test ( file . mime ) && ( ! ql . options . getSizeMax || file . size <= ql . options . getSizeMax ) ) { e . stopImmediatePropagation ( ) ; loading = $ ( '<div class="elfinder-quicklook-info-data"> ' + fm . i18n ( 'nowLoading' ) + '<span class="elfinder-info-spinner"></div>' ) . appendTo ( ql . info . find ( '.elfinder-quicklook-info' ) ) ; // stop loading on change file if not loaded yet preview . one ( 'change' , function ( ) { jqxhr . state ( ) == 'pending' && jqxhr . reject ( ) ; } ) . addClass ( 'elfinder-overflow-auto' ) ; jqxhr = fm . request ( { data : { cmd : 'get' , target : file . hash , conv : 1 , _t : file . ts } , options : { type : 'get' , cache : true } , preventDefault : true } ) . done ( function ( data ) { ql . hideinfo ( ) ; var doc = $ ( '<iframe class="elfinder-quicklook-preview-html"/>' ) . appendTo ( preview ) [ 0 ] . contentWindow . document ; doc . open ( ) ; doc . write ( data . content ) ; doc . close ( ) ; } ) . always ( function ( ) { loading . remove ( ) ; } ) ; } } ) ; }
HTML preview plugin

@param elFinder.commands.quicklook
HTML preview plugin