Ticket #5165: 5165_A_TC.html

File 5165_A_TC.html, 1.3 KB (added by Joe Kavanagh, 10 years ago)
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4        <title>5165_A TC</title>
5        <script type="text/javascript">
6
7var CKEDITOR_BASEPATH = '/ckeditor/';
8
9        </script>
10        <script type="text/javascript" src="/ckeditor/ckeditor_source.js"></script>
11        <script type="text/javascript">
12
13CKEDITOR.on( 'instanceReady', function( ev )
14        {
15                console.log('Smiley path [Default]: ' + ev.editor.config.smiley_path);
16               
17                ev.editor.config.smiley_path = CKEDITOR_BASEPATH + '_source/plugins/smiley/images/';
18                console.log('Smiley path [CKEDITOR_BASEPATH]: ' + ev.editor.config.smiley_path);
19               
20                ev.editor.config.smiley_path = CKEDITOR.basePath +'_source/plugins/smiley/images/';
21                console.log('Smiley path [CKEDITOR.basePath]: ' + ev.editor.config.smiley_path);
22               
23                ev.editor.config.smiley_path = CKEDITOR.getUrl('_source/plugins/smiley/images/');
24                console.log('Smiley path [CKEDITOR.getUrl]: ' + ev.editor.config.smiley_path);
25               
26        });
27
28console.log('CKEDITOR_BASEPATH: ' + CKEDITOR_BASEPATH);
29console.log('CKEDITOR.basePath: ' + CKEDITOR.basePath);
30
31        </script>
32</head>
33<body>
34        <textarea name="editor1" class="ckeditor"></textarea>
35</body>
36</html>
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy