File: noserverresponseencoding.html

package info (click to toggle)
ckeditor 4.5.7%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 30,020 kB
  • sloc: sh: 167; python: 37; makefile: 24; php: 15; xml: 5
file content (21 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div style="display: none; text-align: center; color: red; font-weight: bold; padding: 20px;" id="ignore">
	File uploading is not supported on Internet Explorer 9 and below.
</div>

<div id="editor"></div>

<script>
	CKEDITOR.replace( 'editor', {
		imageUploadUrl: 'http://sub.ckeditor.dev/'
	} );

	// We are going to overwrite server response to have encoded one.
	var basePath = bender.config.tests[ bender.testData.group ].basePath;
	XMLHttpRequest.responseData = {
		url: '\/' + basePath + '_assets\/le%20na.jpg'
	};

	if ( CKEDITOR.env.ie && CKEDITOR.env.version < 10 ) {
		document.getElementById( 'ignore' ).style.display = 'block';
	}
</script>