|
@@ -437,13 +437,28 @@ The `previewTemplates` if not set will default to:
|
|
|
' </object>\n' +
|
|
|
' {footer}\n' +
|
|
|
'</div>',
|
|
|
- other: '<div class="file-preview-frame" id="{previewId}" data-fileindex="{fileindex}" title="{caption}" ' + STYLE_SETTING + '>\n' +
|
|
|
+ other: '<div class="file-preview-frame{frameClass}" id="{previewId}" data-fileindex="{fileindex}" title="{caption}" ' + STYLE_SETTING + '>\n' +
|
|
|
' ' + DEFAULT_PREVIEW + '\n' +
|
|
|
' {footer}\n' +
|
|
|
'</div>',
|
|
|
}
|
|
|
```
|
|
|
|
|
|
+The values of the constants used in the above templates are as follows:
|
|
|
+
|
|
|
+```
|
|
|
+STYLE_SETTING = 'style="width:{width};height:{height};"',
|
|
|
+OBJECT_PARAMS = ' <param name="controller" value="true" />\n' +
|
|
|
+ ' <param name="allowFullScreen" value="true" />\n' +
|
|
|
+ ' <param name="allowScriptAccess" value="always" />\n' +
|
|
|
+ ' <param name="autoPlay" value="false" />\n' +
|
|
|
+ ' <param name="autoStart" value="false" />\n'+
|
|
|
+ ' <param name="quality" value="high" />\n',
|
|
|
+DEFAULT_PREVIEW = '<div class="file-preview-other">\n' +
|
|
|
+ ' <i class="glyphicon glyphicon-file"></i>\n' +
|
|
|
+ ' </div>'
|
|
|
+```
|
|
|
+
|
|
|
#### allowedFileTypes
|
|
|
|
|
|
_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
|
|
|
video: {width: "213px", height: "160px"},
|
|
|
audio: {width: "213px", height: "80px"},
|
|
|
flash: {width: "213px", height: "160px"},
|
|
|
- object: {width: "213px", height: "160px"},
|
|
|
+ object: {width: "160px", height: "160px"},
|
|
|
other: {width: "160px", height: "160px"}
|
|
|
}
|
|
|
```
|