Ticket #735: TC_735.html

File TC_735.html, 1.5 KB (added by Wojciech Olchawa, 13 years ago)

#735 test case. To be copied to the sample catalog.

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>FCKeditor - Ticket #735</title>
5        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6        <meta name="robots" content="noindex, nofollow" />
7        <link href="../sample.css" rel="stylesheet" type="text/css" />
8        <script type="text/javascript" src="../../fckeditor.js"></script>
9</head>
10<body>
11        <h1>
12                FCKeditor - JavaScript - Ticket #735</h1>
13        <div>
14                This is a reproduction of ticket #735 using the sample pages sample2 and sample 10.
15        </div>
16        <hr />
17        <div id="OutsideToolbar"></div>
18        <hr />
19        <form>
20        <br />
21       
22                FCKeditor First instance:
23                <script type="text/javascript">
24
25var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
26
27var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ;
28oFCKeditor.BasePath     = sBasePath ;
29oFCKeditor.Height = 100 ;
30oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:OutsideToolbar' ;
31oFCKeditor.Value = '<p>This is the first instance<\/p>' ;
32oFCKeditor.Create() ;
33
34                </script>
35                <br />
36                FCKeditor Second instance:
37                        <script type="text/javascript">
38
39oFCKeditor = new FCKeditor( 'FCKeditor_2' ) ;
40oFCKeditor.BasePath     = sBasePath ;
41oFCKeditor.Height = 100 ;
42oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:OutsideToolbar' ;
43oFCKeditor.Value = '<p>This is the second instance. Everything works fine.<\/p>' ;
44oFCKeditor.Create() ;
45
46                </script>
47                </form>
48                </body>
49</html>
© 2003 – 2021 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy