Ticket #8821: 8821.html

File 8821.html, 4.9 KB (added by Garry Yao, 12 years ago)
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
4For licensing, see LICENSE.html or http://ckeditor.com/license
6<html xmlns="http://www.w3.org/1999/xhtml">
8        <title>Replace Textareas by Class Name - CKEditor Sample</title>
9        <meta content="text/html; charset=utf-8" http-equiv="content-type" />
10        <!-- CKReleaser %REMOVE_LINE%
11        <script type="text/javascript" src="../ckeditor.js"></script>
12        CKReleaser %REMOVE_START% -->
13        <script type="text/javascript" src="../ckeditor_source.js"></script>
14        <!-- CKReleaser %REMOVE_END% -->
15        <script src="sample.js" type="text/javascript"></script>
16        <link href="sample.css" rel="stylesheet" type="text/css" />
19        <h1>
20                CKEditor Sample
21        </h1>
22        <!-- This <div> holds alert messages to be display in the sample page. -->
23        <div id="alerts">
24                <noscript>
25                        <p>
26                                <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
27                                support, like yours, you should still see the contents (HTML data) and you should
28                                be able to edit it normally, without a rich editor interface.
29                        </p>
30                </noscript>
31        </div>
32        <form action="sample_posteddata.php" method="post">
33                <p>
34                        <label for="editor1">
35                                Editor 1:</label><br />
36                        <textarea cols="80" id="editor1" name="editor1" class="ckeditor" rows="10">
37                                <h1><img alt="" src="http://a.cksource.com/c/1/inc/img/demo-little-red.jpg" style="margin-left: 10px; margin-right: 10px; float: left; width: 120px; height: 168px;" />Little Red Riding Hood</h1>
38                                <p>
39                                        &quot;<b>Little Red Riding Hood</b>&quot; is a famous <a href="http://en.wikipedia.org/wiki/Fairy_tale" onmousedown="alert('xss')" title="Fairy tale">fairy tale</a> about a young girl&#39;s encounter with a wolf. The story has been changed considerably in its history and subject to numerous modern adaptations and readings.</p>
40                                <table border="1" cellpadding="1" cellspacing="1" style="width: 200px;">
41                                        <caption>
42                                                <strong>International Names</strong></caption>
43                                        <tbody>
44                                                <tr>
45                                                        <td>
46                                                                Chinese</td>
47                                                        <td>
48                                                                <i>小紅帽</i></td>
49                                                </tr>
50                                                <tr>
51                                                        <td>
52                                                                Italian</td>
53                                                        <td>
54                                                                <i>Cappuccetto Rosso</i></td>
55                                                </tr>
56                                                <tr>
57                                                        <td>
58                                                                Spanish</td>
59                                                        <td>
60                                                                <i>Caperucita Roja</i></td>
61                                                </tr>
62                                        </tbody>
63                                </table>
64                                <p>
65                                        The version most widely known today is based on the <a href="http://en.wikipedia.org/wiki/Brothers_Grimm" title="Brothers Grimm">Brothers Grimm</a> variant. It is about a girl called Little Red Riding Hood, after the red <a href="http://en.wikipedia.org/wiki/Hood_%28headgear%29" title="Hood (headgear)">hooded</a> <a href="http://en.wikipedia.org/wiki/Cape" title="Cape">cape</a> or <a href="http://en.wikipedia.org/wiki/Cloak" title="Cloak">cloak</a> she wears. The girl walks through the woods to deliver food to her sick grandmother.</p>
66                                <p>
67                                        A wolf wants to eat the girl but is afraid to do so in public. He approaches the girl, and she na&iuml;vely tells him where she is going. He suggests the girl pick some flowers, which she does. In the meantime, he goes to the grandmother&#39;s house and gains entry by pretending to be the girl. He swallows the grandmother whole, and waits for the girl, disguised as the grandmother.</p>
68                                <p>
69                                        When the girl arrives, she notices he looks very strange to be her grandma. In most retellings, this eventually culminates with Little Red Riding Hood saying, &quot;My, what big teeth you have!&quot;<br />
70                                        To which the wolf replies, &quot;The better to eat you with,&quot; and swallows her whole, too.</p>
71                                <p>
72                                        A <a href="http://en.wikipedia.org/wiki/Hunter" title="Hunter">hunter</a>, however, comes to the rescue and cuts the wolf open. Little Red Riding Hood and her grandmother emerge unharmed. They fill the wolf&#39;s body with heavy stones, which drown him when he falls into a well. Other versions of the story have had the grandmother shut in the closet instead of eaten, and some have Little Red Riding Hood saved by the hunter as the wolf advances on her rather than after she is eaten.</p>
73                                <p>
74                                        The tale makes the clearest contrast between the safe world of the village and the dangers of the <a href="http://en.wikipedia.org/wiki/Enchanted_forest" title="Enchanted forest">forest</a>, conventional antitheses that are essentially medieval, though no written versions are as old as that.</p>
75                                                </textarea>
76                </p>
77                <p>
78                        <input type="submit" value="Submit" />
79                </p>
80        </form>
81        <div id="footer">
82                <hr />
83                <p>
84                        CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
85                </p>
86                <p id="copy">
87                        Copyright &copy; 2003-2011, <a href="http://cksource.com/">CKSource</a> - Frederico
88                        Knabben. All rights reserved.
89                </p>
90        </div>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy