Commit 502b285b by David Baumgold

Merge pull request #3893 from louyihua/tinymce-ie-fix

Make TinyMCE's HTML source code editor work under Internet Explorer
parents 6ddc3761 c0511bd1
## -*- coding: utf-8 -*-
## -*- coding: utf-8 -*-
<%! from django.utils.translation import ugettext as _ %>
<%namespace name='static' file='static_content.html'/>
......@@ -39,6 +39,12 @@
<script type="text/javascript">
window.baseUrl = "${settings.STATIC_URL}";
// Internet Explorer does not have built-in property 'window.location.origin',
// we need to create one here as some vendor code such as TinyMCE uses this.
if (!window.location.origin) {
window.location.origin = window.location.protocol + "//" + window.location.hostname
+ (window.location.port ? ':' + window.location.port : '');
}
var require = {
baseUrl: baseUrl,
waitSeconds: 60,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment