GitHub svg media library preview support (#954)
* Append sanitize query to svg download_url * Add svg ext to media viewable * Append searchParam manually
This commit is contained in:
@ -21,8 +21,8 @@ import { Icon } from 'UI';
|
||||
* Extensions used to determine which files to show when the media library is
|
||||
* accessed from an image insertion field.
|
||||
*/
|
||||
const IMAGE_EXTENSIONS_VIEWABLE = [ 'jpg', 'jpeg', 'webp', 'gif', 'png', 'bmp', 'tiff' ];
|
||||
const IMAGE_EXTENSIONS = [ ...IMAGE_EXTENSIONS_VIEWABLE, 'svg' ];
|
||||
const IMAGE_EXTENSIONS_VIEWABLE = [ 'jpg', 'jpeg', 'webp', 'gif', 'png', 'bmp', 'tiff', 'svg' ];
|
||||
const IMAGE_EXTENSIONS = [ ...IMAGE_EXTENSIONS_VIEWABLE ];
|
||||
|
||||
class MediaLibrary extends React.Component {
|
||||
|
||||
|
Reference in New Issue
Block a user