Ticket #9383: 9383.html

File 9383.html, 2.7 KB (added by Garry Yao, 12 years ago)
Line 
1<!DOCTYPE html>
2<html>
3<head>
4        <meta charset="utf-8">
5        <title>Replace Textarea by Code &mdash; CKEditor Sample</title>
6        <script src="../../ckeditor.js"></script>
7        <link href="../../samples/sample.css" rel="stylesheet">
8        <style>
9        </style>
10
11</head>
12<body>
13<div id="column1">
14        <textarea id="editor2">
15                <table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
16                        <tbody>
17                                <tr>
18                                        <td>This table</td>
19                                        <td>is the</td>
20                                        <td>very first</td>
21                                        <td>element of the document.</td>
22                                </tr>
23                                <tr>
24                                        <td>We are still</td>
25                                        <td>able to acces</td>
26                                        <td>the space before it.</td>
27                                        <td>
28                                        <table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
29                                                <tbody>
30                                                        <tr>
31                                                                <td>This table is inside of a cell of another table.</td>
32                                                        </tr>
33                                                        <tr>
34                                                                <td>We can type&nbsp;either before or after it though.</td>
35                                                        </tr>
36                                                </tbody>
37                                        </table>
38                                        </td>
39                                </tr>
40                        </tbody>
41                </table>
42
43                <p>Two succesive horizontal lines (<tt>HR</tt> tags). We can access the space in between:</p>
44
45                <hr />
46                <hr />
47                <ol>
48                        <li>This numbered list...</li>
49                        <li>...is a neighbour of a horizontal line...</li>
50                        <li>...and another list.</li>
51                </ol>
52
53                <ul>
54                        <li>We can type between the lists...</li>
55                        <li>...thanks to <strong>Magicline</strong>.</li>
56                </ul>
57
58                <pre>Lorem ipsum dolor sit amet dui. Morbi vel turpis. Nullam et leo. Etiam rutrum, urna tellus dui vel tincidunt mattis egestas, justo fringilla vel, massa. Phasellus.Quisque iaculis, dui lectus varius vitae, tortor. Proin lacus. Pellentesque ac lacus. Aenean nonummy commodo nec, pede. Etiam blandit risus elit.Ut pretium. Vestibulum rutrum in, adipiscing elit. Sed in quam in purus sem vitae pede. Pellentesque bibendum, urna sem vel risus. Vivamus posuere metus. Aliquam gravida iaculis nisl. Nam enim. Aliquam erat ac lacus tellus ac felis.</pre>
59
60                <table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
61                        <tbody>
62                                <tr>
63                                        <td>This table</td>
64                                        <td>is the</td>
65                                        <td>very first</td>
66                                        <td>element of the document.</td>
67                                </tr>
68                                <tr>
69                                        <td>We are still</td>
70                                        <td>able to acces</td>
71                                        <td>the space before it.</td>
72                                        <td>
73                                        <table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
74                                                <tbody>
75                                                        <tr>
76                                                                <td>This table is inside of a cell of another table.</td>
77                                                        </tr>
78                                                        <tr>
79                                                                <td>We can type&nbsp;either before or after it though.</td>
80                                                        </tr>
81                                                </tbody>
82                                        </table>
83                                        </td>
84                                </tr>
85                        </tbody>
86                </table>
87        </textarea>
88        <script>
89                CKEDITOR.replace( 'editor2', { extraPlugins : 'wysiwygarea' } );
90        </script>
91</div>
92</body>
93</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy