From 3192207efe4448c1c55aa25ebe30ccd9eebbe8d5 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 1 Sep 2015 14:35:52 +0200 Subject: add IE8 support for replacing icons --- js/editor.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'js') diff --git a/js/editor.js b/js/editor.js index 160a315..7ea57a7 100644 --- a/js/editor.js +++ b/js/editor.js @@ -259,6 +259,7 @@ var Files_Texteditor = { +'
'); $('#app-content').append(container); + // Get the file data this.loadFile( file.dir, @@ -287,6 +288,11 @@ var Files_Texteditor = { } else { _self.previewPluginOnChange = null; } + + // IE8 support + if(!OC.Util.hasSVGSupport()){ //replace all svg images with png images for browser that dont support svg + OC.Util.replaceSVG(); + } }, function(message){ // Oh dear -- cgit v1.2.3