@@ -437,13 +437,28 @@ The `previewTemplates` if not set will default to:
437
437
' </object>\n ' +
438
438
' {footer}\n ' +
439
439
' </div>' ,
440
- other: ' <div class="file-preview-frame" id="{previewId}" data-fileindex="{fileindex}" title="{caption}" ' + STYLE_SETTING + ' >\n ' +
440
+ other: ' <div class="file-preview-frame{frameClass} " id="{previewId}" data-fileindex="{fileindex}" title="{caption}" ' + STYLE_SETTING + ' >\n ' +
441
441
' ' + DEFAULT_PREVIEW + ' \n ' +
442
442
' {footer}\n ' +
443
443
' </div>' ,
444
444
}
445
445
```
446
446
447
+ The values of the constants used in the above templates are as follows:
448
+
449
+ ```
450
+ STYLE_SETTING = 'style="width:{width};height:{height};"',
451
+ OBJECT_PARAMS = ' <param name="controller" value="true" />\n' +
452
+ ' <param name="allowFullScreen" value="true" />\n' +
453
+ ' <param name="allowScriptAccess" value="always" />\n' +
454
+ ' <param name="autoPlay" value="false" />\n' +
455
+ ' <param name="autoStart" value="false" />\n'+
456
+ ' <param name="quality" value="high" />\n',
457
+ DEFAULT_PREVIEW = '<div class="file-preview-other">\n' +
458
+ ' <i class="glyphicon glyphicon-file"></i>\n' +
459
+ ' </div>'
460
+ ```
461
+
447
462
#### allowedFileTypes
448
463
449
464
_ array_ the list of allowed file types for upload. This by default is set to null which means the plugin supports all file types for upload. If an
@@ -495,7 +510,7 @@ _object_ the format settings (width and height) for rendering each preview file
495
510
video: {width: " 213px" , height: " 160px" },
496
511
audio: {width: " 213px" , height: " 80px" },
497
512
flash: {width: " 213px" , height: " 160px" },
498
- object: {width: " 213px " , height: " 160px" },
513
+ object: {width: " 160px " , height: " 160px" },
499
514
other: {width: " 160px" , height: " 160px" }
500
515
}
501
516
```
0 commit comments