From c0511bd1a954ea24429ac1b5fc830d6bc7d03715 Mon Sep 17 00:00:00 2001 From: louyihua Date: Thu, 29 May 2014 12:50:11 +0800 Subject: [PATCH] Build 'window.location.origin' for Internet Explorer As TinyMCE's CodeMirror plug-in uses 'window.location.origin' which is not supported by Internet Explorer, the HTML or raw code editor does not work under Internet Explorer. We need to create one in order to make these vendor codes work under Internet Explorer. --- cms/templates/base.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cms/templates/base.html b/cms/templates/base.html index c5ba8ac3a2..94fac13c7b 100644 --- a/cms/templates/base.html +++ b/cms/templates/base.html @@ -1,4 +1,4 @@ -## -*- coding: utf-8 -*- +## -*- coding: utf-8 -*- <%! from django.utils.translation import ugettext as _ %> <%namespace name='static' file='static_content.html'/> @@ -39,6 +39,12 @@