Ticket #9405: 9405.html

File 9405.html, 1.5 KB (added by Garry Yao, 12 years ago)

Simplified TC

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        <META content="IE=7.0000" http-equiv="X-UA-Compatible">
5        <meta content="text/html; charset=utf-8" http-equiv="content-type" />
6        <script type="text/javascript" src="../../ckeditor_source.js"></script>
7</head>
8<body>
9<p>
10        <textarea rows="8" id="editor1" cols="80">
11                <table class="foo bar">
12                        <tbody>
13                        <tr>
14                                <td>I'm a table</td>
15                        </tr>
16                        </tbody>
17                </table>
18                <p>
19                        <img src="http://dev.ckeditor.com/chrome/site/logo-ckeditor-dev.png" class="foo bar" />
20                </p>
21        </textarea>     <script type="text/javascript">
22                CKEDITOR.replace( 'editor1',
23                {
24                        stylesSet: [
25                                { name: 'foo table', element: 'table', attributes: { 'class': 'foo'} },
26                                { name: 'bar img', element: 'img', attributes: { 'class': 'foo'} }
27                        ]
28                });
29        </script>
30</p>   
31
32<p>
33        <textarea rows="8" id="editor2" cols="80">
34                <table class="bar foo">
35                        <tbody>
36                        <tr>
37                                <td>I'm a table</td>
38                        </tr>
39                        </tbody>
40                </table>
41                <p>
42                        <img src="http://dev.ckeditor.com/chrome/site/logo-ckeditor-dev.png" class="bar foo" />
43                </p>
44        </textarea>     <script type="text/javascript">
45                CKEDITOR.replace( 'editor2',
46                {
47                        stylesSet: [
48                                { name: 'foobar table', element: 'table', attributes: { 'class': 'foo bar'} },
49                                { name: 'foobar img', element: 'img', attributes: { 'class': 'foo bar'} }
50                        ]
51                });
52        </script>
53</p>
54</body>
55</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy